WIA/public_html/.htaccess

19 lines
625 B
ApacheConf
Raw Permalink Normal View History

2011-12-04 04:06:25 -05:00
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>