redirect - Codeigniter only loads the default controller -


I am very new to CodeIgniter, but I am doing PHP programming for ages. I am currently writing some software and for the first time I am using CI.

The default controller is set to the first controller, I call the action 'login' (the controller is login.php, the view is login.php. When the form is submitted, this 'authentication' controller It executes fine, login process data properly, and then on the next page a redirect command (on the screen without any output) is the case newsletter. The problem is that the redirect 'newspages' Up to But the default controller runs again.

It does not matter what I kept ... ht tp: // domain name / anything ... (yes, .htaccess To remove index.php) is never called anything, just the default controller. I have left the standard 'welcome.php' controller and the 'welcome_message.php' folders and even ht tp : //domain.name/welcome: All is also the login screen! (Obviously there should not be a location between http - Just do it so that you do not show it as a hyperlink!)

Can anyone tell me what I have done!

Try changing the $ config ['uri_protocol'] for each possible value listed in the config.php file Please. One of them can work because it is a common problem.


Comments