Add .htaccess file to repository.

This commit is contained in:
Andrew Tomaka 2011-12-04 04:06:25 -05:00
parent cf2df2920f
commit 4ab3f8ba08

18
public_html/.htaccess Normal file
View file

@ -0,0 +1,18 @@
RewriteEngine On
RewriteCond %{HTTP_HOST} ^whoisandrew.com
RewriteRule (.*) http://www.whoisandrew.com/$1 [R=301,L]
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=31556926, public"
</FilesMatch>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|xml|txt|css|js)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>