One More Thing to Try if Removing index.php Doesn’t Work

If you’ve just moved your ExpressionEngine installation to a new server and suddenly find that your .htaccess index.php removal doesn’t work, here’s one more thing to try.

Just add a question mark at the end of “index.php” on the last line of your .htaccess file. (If you already have a question mark there, try removing it.)

The last line of your .htaccess file should look like

RewriteRule ^(.*)$ /index.php?/$1 [L] 
if it looked like
RewriteRule ^(.*)$ /index.php/$1 [L] 

before.

Removing/adding the question mark should work regardless of whether or not you’re using the include or exclude method to remove index.php.


Posted on Mar 22, 2009 - 11:45 AM

Leave A Comment!!

Please enter the letters or word you see in the image below:

Name:

Email:

Location:

URL:

Remember this information for next time

E-mail me about follow-up comments