Removing index.php with ExpressionEngine and Media Temple

Two recent ExpressionEngine projects are hosted at Media Temple in the “DV” environment. Due to how the server is set up, the normal method of removing index.php from the URLs will not work. ExpressionEngine needs a “?” in the rewrite rules in this specific case. Otherwise, an error of “no input file specified” will be generated. This is just a minor issue to keep in mind if you are using ExpressionEngine and Media Temple DV hosting, but one that could break your site if not fixed. These types of problems tend to make an appearance when moving a site from development to production, resulting in a Google search on error messages, or a look through notes on past projects.

Change this:

RewriteRule ^(.*)$ /index.php/$1 [L]

to this:

RewriteRule ^(.*)$ /index.php?/$1 [L]

Stack Overflow

%d bloggers like this: