Skip to content

Instantly share code, notes, and snippets.

@sceccaldi
Created March 18, 2013 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sceccaldi/5186017 to your computer and use it in GitHub Desktop.
Save sceccaldi/5186017 to your computer and use it in GitHub Desktop.
Remove index.php from Expression Engine 2 URLs
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php from ExpressionEngine URLs
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment