forward old vi.shiar.net domains
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 22 Nov 2009 05:31:20 +0000 (05:31 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 2 Dec 2009 20:58:37 +0000 (20:58 +0000)
Initial vi(m).shiar.* locations should always give a permanent redirect
to the preferred sheet.shiar.nl (/vi unless specified otherwise).

.htaccess

index 3e99fe8a944b1f75be19969adb054871a0d0a922..a17c5d532c5321e18738a83cd99ebc29dd7edf6d 100644 (file)
--- 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]