Source

freehg / htdocs / .htaccess

Diff from to

File htdocs/.htaccess

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