index.php in url |
[eluser]Unknown[/eluser]
Hello, can't find the answer/solution in the Manual, neither on the forum. A lot of similar problems, but not exact the same. My files: application/controllers/admin/admin.php application/controllers/admin/login.php My routes: $route['admin'] = 'admin/admin'; Inside 'admin.php': Code: <?php My htaccess: Code: <IfModule mod_rewrite.c> Problem: When I surf to http://mysite/admin i get redirected to http://mysite/index.php/admin/login . How can I remove the index.php ? It's the first time I'm using subfolders in the 'controller' folder, therefore the index.php wasn't there... Thanks for helping!
[eluser]mddd[/eluser]
Have you removed the 'index.php' in your config.php too? If you use redirect() or site_url() or similar functions, they use the 'index page' you specify in config.php. Make sure it is set to "" (empty string).
[eluser]Unknown[/eluser]
There you go! That was stupid of me.. Setting the 'index_page' to an empty string solved the problem. Thanks for the help mddd! |
Welcome Guest, Not a member yet? Register Sign In |