Tags

,

RewriteEngine On
Options +FollowSymLinks
RewriteBase /

RewriteCond %{HTTP_HOST} ^beta.mysite.com [OR]
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteCond %{HTTP_HOST} !beta.mysite.com
RewriteRule ^(.*)$ http://mycompanysite.com/$1 [QSA,L,R=301]

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

### activate mod_expires
ExpiresActive On

### cache asset files(js,jpg,etc.,) for 4 months
Header set Cache-Control “max-age=10368000, must-revalidate”
FileETag none
Header unset Last-Modified
Header unset ETag

### Added ExpiresByType for older clients(telnet,netscape,wget) that only understand HTTP/1.0
ExpiresByType image/gif “access plus 4 months”
ExpiresByType image/png “access plus 4 months”
ExpiresByType image/jpeg “access plus 4 months”
ExpiresByType image/bmp “access plus 4 months”
ExpiresByType text/css “access plus 4 months”
ExpiresByType text/javascript “access plus 4 months”
ExpiresByType application/x-javascript “access plus 4 months”
ExpiresByType application/x-shockwave-flash “access plus 4 months”

### Begin gzip

AddOutputFilterByType DEFLATE text/text font/opentype application/x-font-woff application/font-woff application/vnd.ms-fontobject application/x-font-ttf text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript application/json

### End gzip

Advertisements