SammyB/innovative-verandah/master/.htaccess - Htaccess File

SammyB/innovative-verandah/master/.htaccess

RewriteEngine on
AddHandler server-parsed .html
RewriteCond %{HTTP_HOST} ^innovativeverandahs.sammyb.com.au$ [OR]
RewriteCond %{HTTP_HOST} ^www.innovativeverandahs.sammyb.com.au$
RewriteRule ^/?$ "http://www.innovativeverandahs.com/" [R=301,L]

RewriteCond %{HTTP_HOST} ^melbourneverandahs.sammyb.com.au$ [OR]
RewriteCond %{HTTP_HOST} ^www.melbourneverandahs.sammyb.com.au$
RewriteRule ^/?$ "http://www.innovativeverandahs.com/" [R=301,L]

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/svg+xml "access 2 days"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

ErrorDocument 404 /404.shtml

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache