git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a77ad
)
forward old vi.shiar.net domains
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 22 Nov 2009 05:31:20 +0000
(
05:31
+0000)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/.htaccess
b/.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]