CodeIgniter Forums

Full Version: Form helper post to index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!

El Forum

[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'] = "";

El Forum

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