CodeIgniter Forums
Form helper post to index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Form helper post to index.php (/thread-31494.html)



Form helper post to index.php - El Forum - 06-21-2010

[eluser]Christophe28[/eluser]
Hello,

I'm a new user of codeigniter.

I escaped index.php in nginx and it works perfectly (I guess) When I surf to mysite.com/controller the proper controller is loaded. But now I'm want to use a login form. When I press the submit button, I got redirected to mysite/index.php/login/validate_credentials instead of mysite/login/validate_credentials

And obvious that didn't work, otherwise I wouldn't be here. What am I doing wrong?

I'm sure it is a small thing :-)

THX!


Form helper post to index.php - El Forum - 06-21-2010

[eluser]danmontgomery[/eluser]
You have to also remove index.php from config/config.php.

Code:
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";



Form helper post to index.php - El Forum - 06-21-2010

[eluser]Christophe28[/eluser]
And it works! Thx mate! Big Grin