Remove index.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Remove index.php (/showthread.php?tid=7786) |
Remove index.php - El Forum - 04-23-2008 [eluser]morph london[/eluser] I have a website that uses a .htaccess file to remove the index.php. I goto www.mysite.com/admin/login/ and it works fine so the .htaccess is working. Now when I do a redirect using the built in function it directs to www.mysite.com/index.php/admin/login/. It obviously does not break the site, but I was just wondering how to remove it. My colleague is building a site exactly the same as mine and his does not do it. But we can not work out if hes changed a setting somewhere. Thanks Alex Remove index.php - El Forum - 04-23-2008 [eluser]GSV Sleeper Service[/eluser] check your config.php in application/config. the line you are looking for is Code: $config['index_page'] = "index.php"; Remove index.php - El Forum - 04-23-2008 [eluser]morph london[/eluser] Thanks all sorted, I thought that was there to tell the system what my index file was called. If I changed it to default.php for example. Remove index.php - El Forum - 04-23-2008 [eluser]GSV Sleeper Service[/eluser] nope, that would be set in your apache conf. |