Expression Engine - Removing index.php

Wednesday, July 16th, 2008

Expression Engine Removing index.php

Expression Engine ships with no URL rewriting, and that means that every page on your expression engine website will be prefixed with index.php.  To remove the .index.php from each page you’ll need to do some URL rewriting.  Expression Engine have some documents detailing how to remove index.php (opens in a new window) on their website, but they don’t cover if you’re hosting your site from a subdirectory (www.mysite.com/subdirectory/expressionengine/)

To remove index.php from your pages, just create a file in the root of your expression engine install called .htaccess.  This will tell Apache how to rewrite the url to remove the offending prefix.  Here’s how to do that: read more…


8 Comments »