• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form helper post to index.php


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 :-)


You have to also remove index.php from config/config.php.

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

And it works! Thx mate! Big Grin

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.