Htaccess File

hughbien/thyme/master/site/.htaccess

HTTP_HOST, REQUEST_FILENAME, REQUEST_URI
RequestHeader unset X-Forwarded-Host
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_URI} ^/favicon.ico|/.*.png|/.*.jpg|/.*.css|.*.js$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (.*) $1 [L]

RewriteCond %{HTTP_HOST} !^hughbien.com$
RewriteRule (.*) http://hughbien.com/thyme/ [R=permanent,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://hughbien.com/thyme/ [R=permanent,L] 

AddType application/vnd.ms-fontobject .eot
AddType application/font-woff .woff
AddType font/ttf .ttf
AddType image/svg+xml .svg

ExpiresActive On
ExpiresByType image/png A31536000
ExpiresByType image/jpg A31536000
ExpiresByType image/x-icon A31536000
ExpiresByType application/vnd.ms-fontobject A31536000
ExpiresByType application/font-woff A31536000
ExpiresByType font/ttf A31536000
ExpiresByType image/svg+xml A31536000
ExpiresByType application/javascript A31536000
ExpiresByType text/css A31536000
ExpiresByType text/html A3600
Exit mobile version