RewriteEngine On RewriteCond %{HTTP_HOST} ^whoisandrew.com RewriteRule (.*) http://www.whoisandrew.com/$1 [R=301,L] Header set Cache-Control "max-age=31556926, public" 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.*