Skip to content

Instantly share code, notes, and snippets.

@jorgepinon
Created August 29, 2012 03:48
Show Gist options
  • Save jorgepinon/3506612 to your computer and use it in GitHub Desktop.
Save jorgepinon/3506612 to your computer and use it in GitHub Desktop.
ExpressionEngine htaccess exclude list method
RewriteEngine On
# exclude list method: http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond $1 !^(admin|css|images|js|templates|themes|uploads|favicon\.ico|robots\.txt|index\.php|googleWebmasterFile\.html|sitemap\.html) [NC]
RewriteRule ^(.*)$ index.php?/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment