On Nov 06, 2008, at 01:06:06, Patrick Waugh wrote: > RewriteEngine On > RewriteBase /repo > RewriteRule ^$ hgwebdir.cgi [L] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule (.*) hgwebdir.cgi/$1 [QSA,L] Wouldn't this work just as well? DirectoryIndex hgwebdir.cgi