Skip to content

Instantly share code, notes, and snippets.

@siebird
Created November 8, 2012 01:19
Show Gist options
  • Save siebird/4035793 to your computer and use it in GitHub Desktop.
Save siebird/4035793 to your computer and use it in GitHub Desktop.
Simple .htaccess rules for ExpressionEngine on Media Temple (dv)'s
## BEGIN Expression Engine Rewrite
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]
# END Expression Engine Rewrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment