Created
December 29, 2014 09:26
-
-
Save bhubbard/a888314939b585958ec7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ifModule mod_php5.c> | |
php_value zlib.output_compression on | |
</ifModule> | |
SetOutputFilter DEFLATE | |
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
Header append Vary User-Agent env=!dont-vary | |
</IfModule> | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault “access plus 14 days” | |
Header set Cache-Control “public” | |
</IfModule> | |
<FilesMatch “\.(html|htm|xml|txt|xsl)$”> | |
Header set Cache-Control “max-age=7200, must-revalidate” | |
</FilesMatch> | |
<IfModule mod_mime.c> | |
AddType application/x-javascript .js | |
AddType text/css .css | |
</IfModule> | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript | |
</IfModule> | |
<IfModule mod_setenvif.c> | |
SetEnvIfNoCase Request_URI \.(?:rar|zip)$ no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \.(?:avi|mov|mp4)$ no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary | |
</IfModule> | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ – [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment