From: Mischa POSLAWSKY Date: Sun, 22 Nov 2009 05:31:20 +0000 (+0000) Subject: forward old vi.shiar.net domains X-Git-Tag: v1.3~84 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/567c02298580bf1d3daed4b66a55eee7e14222e0 forward old vi.shiar.net domains Initial vi(m).shiar.* locations should always give a permanent redirect to the preferred sheet.shiar.nl (/vi unless specified otherwise). --- diff --git a/.htaccess b/.htaccess index 3e99fe8..a17c5d5 100644 --- a/.htaccess +++ b/.htaccess @@ -3,6 +3,10 @@ DirectoryIndex index.plp RewriteEngine on RewriteBase / +# redirect from old vim-only subdomain +RewriteCond %{HTTP_HOST} ^vim?\.shiar\.\w+$ +RewriteRule ^(vi(?=m$)|.*) http://sheet.shiar.nl/$1 [R=301] + # redirect old location RewriteRule ^vim$ /vi [R=301]