Commits

Matthew Marshall committed 17ade3f

Fixed .htaccess to not go through django if the user agent is 'mercurial.*'

Comments (0)

Files changed (1)

 RewriteRule ^.*$ - [L]
 
 RewriteRule ^(hgfcgi/dispatch\.fcgi/.*)$ - [L]
-RewriteRule ^u/(\w+)/(\w+)/(.+)$ hgfcgi/dispatch.fcgi/u/$1/$2/$3 [L]
+RewriteRule ^(dispatch\.fcgi/.*)$ - [L]
 
-RewriteRule ^(dispatch\.fcgi/.*)$ - [L]
+RewriteCond %{HTTP_USER_AGENT} ^mercurial.*
+RewriteRule ^(u/.+)$ hgfcgi/dispatch.fcgi/$1 [L]
+
+RewriteRule ^(u/\w+/\w+/?)$ dispatch.fcgi/$1 [L]
+
+RewriteRule ^(u/.+)$ hgfcgi/dispatch.fcgi/$1 [L]
+
 RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]