How to Completely Remove index.php
In last week’s EE Help Chat, Kevin Thompson raised a question about removing index.php and preventing URLs with index.php from resolving, too. A couple of people in the chat room put their heads together and came up with a solution.
The problem:
At the time of this writing, if you were to visit http://expressionengine.com/index.php/overview/ or http://expressionengine.com/overview/, you’d be presented with the exact same page. Having the same content resolve at two distinct URLs can potentially harm your search engine rankings and disrupt your analytics.
The solution is a beefier set of rewrite rules to prevent URLs with index.php in them from resolving. Read Kevin’s write-up for the code you need (and be sure to check out the comments): Completely Remove index.php From ExpressionEngine URLs
Share on Twitter