Accept PATH_INFO on gitweb.cgi
[sipb-www.git] / .htaccess
index 737896b5b588d2d2ebbd1e6b5886f0d9be7708a9..37325c0d75743bbab67acd38b42500e0d0b057ff 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -7,9 +7,15 @@
 RewriteEngine On
 RewriteBase /
 
+# Canonicalize on sipb.mit.edu
+RewriteCond %{HTTP_HOST} !^sipb.mit.edu$ [NC]
+RewriteCond %{HTTPS} !=on
+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]
+RewriteRule ^gitweb.cgi(/.*)?$ _wiki-cgi/gitweb.cgi$1 [L]
 
 # Trailing-slash directories served from _wiki
 RewriteCond %{DOCUMENT_ROOT}/_wiki%{REQUEST_URI} -d