Skip to content

Instantly share code, notes, and snippets.

@mikevalstar
Created August 30, 2013 12:02
Show Gist options
  • Save mikevalstar/6389168 to your computer and use it in GitHub Desktop.
Save mikevalstar/6389168 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/$1 [L,QSA]
ExpiresActive On
ExpiresByType image/gif "access plus 7 days"
ExpiresByType image/png "access plus 7 days"
ExpiresByType image/jpeg "access plus 7 days"
ExpiresByType application/javascript "access plus 7 days"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment