From: Rich Bowen Date: Wed, 4 Nov 2009 18:13:15 +0000 (+0000) Subject: Should be a leading slash on that regex. Thanks to Bob Ionescu. X-Git-Tag: 2.3.3~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2a91602bec5fe45a137c93761e91a39ff9fc58d;p=thirdparty%2Fapache%2Fhttpd.git Should be a leading slash on that regex. Thanks to Bob Ionescu. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832826 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/remapping.html.en b/docs/manual/rewrite/remapping.html.en index d7e63991409..70a74aad545 100644 --- a/docs/manual/rewrite/remapping.html.en +++ b/docs/manual/rewrite/remapping.html.en @@ -326,7 +326,7 @@ HostnameLookups on RewriteEngine on RewriteMap multiplex txt:/path/to/map.mirrors RewriteCond %{REMOTE_HOST} ([a-z]+)$ [NC] -RewriteRule ^(.*)$ ${multiplex:%1|http://www.example.com/}$1 [R,L] +RewriteRule ^/(.*)$ ${multiplex:%1|http://www.example.com/}$1 [R,L]
diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml
index e8a7af5c69d..8850219280c 100644
--- a/docs/manual/rewrite/remapping.xml
+++ b/docs/manual/rewrite/remapping.xml
@@ -327,7 +327,7 @@ HostnameLookups on
 RewriteEngine on
 RewriteMap    multiplex         txt:/path/to/map.mirrors
 RewriteCond  %{REMOTE_HOST}     ([a-z]+)$ [NC]
-RewriteRule   ^(.*)$  ${multiplex:%1|http://www.example.com/}$1  [R,L]
+RewriteRule   ^/(.*)$  ${multiplex:%1|http://www.example.com/}$1  [R,L]