redirect() ignores my .htaccess and uses domain_name/index.php/<redirected_url> |
[eluser]Unknown[/eluser]
I'm new to codeigniter. My url's are working properly, aka trunk.dev/login/ Till I began working on the login/authentication for my application. When I call the redirect() function to redirect when authentication fails it redirects properly but uses the index.php so my url address points to -> http://trunk.dev/index.php/login instead of trunk.dev/login/ Any thoughts? Below are my settings. .htaccess Code: RewriteEngine On apache-conf Code: <VirtualHost 127.0.0.1:80> lastly, my code calling the function Code: $handshake = $this->User_model->authenticate($email, $password);
[eluser]Pascal Kriete[/eluser]
Go into application/config/config.php and blank out the index page config value: Code: // Old CI uses that to create urls when you're using site_url, redirect, anchor, form_open and other functions that generate urls. Welcome to CodeIgniter.
[eluser]Unknown[/eluser]
thanks that did the trick. not sure if my documentation for the url rewriting mentioned to go into my config file and remove that string. non eht less thanks for the quick answer. Saves me lots of time. Awesome!
[eluser]hugle[/eluser]
[quote author="Pascal Kriete" date="1223881764"]Go into application/config/config.php and blank out the index page config value: Code: // Old CI uses that to create urls when you're using site_url, redirect, anchor, form_open and other functions that generate urls. Welcome to CodeIgniter.[/quote] thank you! couldn't think that can be so easy! |
Welcome Guest, Not a member yet? Register Sign In |