Welcome Guest, Not a member yet? Register   Sign In
Form helper post to index.php
#1

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB