hgwebdir.cgi and clean URLs
Ted Pavlic
ted at tedpavlic.com
Wed May 21 20:01:20 UTC 2008
> This hid "hgwebdir.cgi" from the URLs in 0.9.5, but exposed it in
> 1.0. What does your .htaccess look like?
In my repositories that are accessed under /hg, I use something like
(notice the "/static" part):
RewriteEngine On
RewriteBase /hg
RewriteRule ^$ index.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.cgi/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !^/hg/index.cgi/static/
RewriteRule ^index.cgi/(.*) http://www.domain.com/hg/$1 [R=permanent,L]
HOWEVER, in my repositories that are accessed as a subdomain, I use:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index.cgi/static/
RewriteRule ^index.cgi/(.*) http://hg.domain.com/$1 [R=permanent,L]
Is there something wrong with those?
--Ted
--
Ted Pavlic <ted at tedpavlic.com>
More information about the Mercurial
mailing list