Welcome Guest, Not a member yet? Register   Sign In
index.php removal issues

I found this previous forum post:

I followed instructions within it and created .htaccess file:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

The problem:
I have to MANUALLY remove the ‘index.php’ for the URL to look clean. When I just go to the root directory OR click on a link within the app----when CI figures out the URL by itself the index.php is still there.

How do I get index.php to be gone completely?

Look in your config.php file. There is a line where you can remove index.php file by empty the config array string.

Thank you!

You should use .htaccess for CI 2.0

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME| !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

device massage

Theme © iAndrew 2016 - Forum software by © MyBB