Skip to content

Instantly share code, notes, and snippets.

@blister
Created April 21, 2010 15:43
Show Gist options
  • Save blister/373986 to your computer and use it in GitHub Desktop.
Save blister/373986 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteRule ^js/(.+)$ js/$1 [L]
RewriteRule ^css/(.+)$ css/$1 [L]
RewriteRule ^images/(.+)$ images/$1 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)$ index.php?path=$1&%{QUERY_STIRNG} [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment