Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 615 Bytes
# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.randompokemon\.com [NC]
RewriteRule (.*) http://randompokemon.com/$1 [R=301,L]
# Cache sprites and other goodies
ExpiresActive on
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/ico "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/html "access plus 1 day"
# Hide the /.git/ and /setup/ directories from being accessed online.
RedirectMatch 404 /\.git
RedirectMatch 404 /setup