Canonicalize on sipb.mit.edu
authorQuentin Smith <quentin@mit.edu>
Sun, 14 Mar 2010 01:13:28 +0000 (20:13 -0500)
committerQuentin Smith <quentin@mit.edu>
Sun, 14 Mar 2010 01:13:28 +0000 (20:13 -0500)
.htaccess

index 737896b5b588d2d2ebbd1e6b5886f0d9be7708a9..866e817c21dafc6a5391f503ef4ba68ba907e98b 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -7,6 +7,10 @@
 RewriteEngine On
 RewriteBase /
 
+# Canonicalize on sipb.mit.edu
+RewriteCond %{HTTP_HOST} !^sipb.mit.edu$ [NC]
+RewriteRule ^(.*)$ http://sipb.mit.edu$1 [R=301,L]
+
 # Serve some CGI scripts from _wiki-cgi
 RewriteRule ^ikiwiki.cgi$ _wiki-cgi/ikiwiki.cgi [L]
 RewriteRule ^update.cgi$ _wiki-cgi/update.cgi [L]