X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/23a77ad01b96149db5e07121c09481dd1c5d9b4a..18a6f92cf7a37023188712560bbb12bc96c24b2c:/.htaccess diff --git a/.htaccess b/.htaccess index 3e99fe8..98b32d3 100644 --- a/.htaccess +++ b/.htaccess @@ -3,8 +3,13 @@ DirectoryIndex index.plp RewriteEngine on RewriteBase / -# redirect old location +# redirect from old vim-only subdomain +RewriteCond %{HTTP_HOST} ^vim?\.shiar\.\w+$ +RewriteRule ^(vi(?=m$)|.*) http://sheet.shiar.nl/$1 [R=301] + +# redirect old locations RewriteRule ^vim$ /vi [R=301] +RewriteRule ^cc$ /countries [R=301] # serve vim commands when requesting /digraphs.ex as well RewriteRule ^(digraphs)\.ex(/.*)?$ $1.vim$2