![]() |
index.php in url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: index.php in url (/showthread.php?tid=32973) |
index.php in url - El Forum - 08-11-2010 [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! index.php in url - El Forum - 08-11-2010 [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). index.php in url - El Forum - 08-11-2010 [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! |