Welcome Guest, Not a member yet? Register   Sign In
Remove index.php
#1

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

[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";
if you want to completely remove index.php then you should leave this blank.
#3

[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.
#4

[eluser]GSV Sleeper Service[/eluser]
nope, that would be set in your apache conf.




Theme © iAndrew 2016 - Forum software by © MyBB