Accept PATH_INFO on gitweb.cgi
[sipb-www.git] / .htaccess
index 866e817c21dafc6a5391f503ef4ba68ba907e98b..37325c0d75743bbab67acd38b42500e0d0b057ff 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -9,11 +9,13 @@ RewriteBase /
 
 # Canonicalize on sipb.mit.edu
 RewriteCond %{HTTP_HOST} !^sipb.mit.edu$ [NC]
-RewriteRule ^(.*)$ http://sipb.mit.edu$1 [R=301,L]
+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