hollandben/slidorion.com/master/.htaccess - Htaccess File

hollandben/slidorion.com/master/.htaccess

# SET CACHE-CONTROL
# 1 year
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=31449600, public"
</FilesMatch>

# 2 DAYS
<FilesMatch ".(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>

# 4 HOURS
<FilesMatch ".(html|htm)$">
Header set Cache-Control "max-age=14400, must-revalidate"
</FilesMatch>

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www.slidorion.com$ [NC]
RewriteRule .? http://www.slidorion.com%{REQUEST_URI} [R=301,L]

Options -Indexes

# BEGIN GZIP
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# END

On Github License

Files

Download PDF of Htaccess file
CACHE, DEFLATE, HTTP_HOST, no-gzip, REQUEST_URI

Comments

Apache