Skip to content

Instantly share code, notes, and snippets.

@subhaze
Created June 24, 2014 14:30
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 subhaze/55eb1cabead6c715d084 to your computer and use it in GitHub Desktop.
Save subhaze/55eb1cabead6c715d084 to your computer and use it in GitHub Desktop.
No-frills .htaccess file w/Gzip
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment