Hi, Say I have the following in my /DocRoot/foo/.htaccess: RewriteRule (.*) http://another.site/$1 [last,redirect=permanent] According to the comments around line 1940 of mod_rewrite.c, the local prefix should be stripped from the URI before matching against the pattern. Indeed, http://my.site/foo/bar does get redirected to http://another.site/bar . However, if one tries to access http://my.site/foo , the string comparison in the code fails, resulting in the full path being matched against the pattern. i.e. http://my.site/foo is redirected to http://another.site//DocRoot/foo . A temporary fix is to special-case this condition in the rewrite rules: RewriteRule /DocRoot/foo http://another.site/ [last,redirect=permanent] though this is hardly elegant. Thanks, /Liyang
Fixed in 2.1 and proposed for inclusion into the 2.0 stable branch. Thanks for your report and thanks for using Apache!