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

[eluser]EEssam[/eluser]
Hello,

I'm coding in http://localhost/somefolder so I created a .htaccess file like the following:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]

I copied that from CI docs, I just added the ./ on the last line, and it's working but the all the links are showing the index.php again! If I remove the index.php manually the links work as well.

So, why index.php is being added and how can I get rid of it forever?

Thanks.
#2

[eluser]Michael Wales[/eluser]
Edit your config.php - the comments tell all.
#3

[eluser]EEssam[/eluser]
Aha, that fixed the issue. Many thanks.




Theme © iAndrew 2016 - Forum software by © MyBB