From 7bbef31a34b57cd716a477eb7c75cbbea05ad480 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Sun, 14 Apr 2013 09:05:06 +0400 Subject: [PATCH] Redirect *.psim.us/sprites to play.pokemonshowdown.com --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.htaccess b/.htaccess index 65627059a..173fe3706 100644 --- a/.htaccess +++ b/.htaccess @@ -27,6 +27,9 @@ RewriteRule ^(.*) http://play.pokemonshowdown.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(.*?)-8000\.psim\.us$ [NC] RewriteRule ^(.*) http://%1.psim.us/$1 [R=301,L] +RewriteCond %{HTTP_HOST} !^play\.pokemonshowdown\.com$ [NC] +RewriteRule ^sprites/(.*)$ http://play.pokemonshowdown.com/sprites/$1 [R=301,L] + RewriteRule ^style/font/.*?\.(eot|svg|ttf|woff)$ - [env=SAFERESOURCE] Header set Access-Control-Allow-Origin * env=SAFERESOURCE