]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Should be a leading slash on that regex. Thanks to Bob Ionescu.
authorRich Bowen <rbowen@apache.org>
Wed, 4 Nov 2009 18:13:15 +0000 (18:13 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 4 Nov 2009 18:13:15 +0000 (18:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832826 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/remapping.xml

index d7e63991409ca08f681f0c521845797856ca14b3..70a74aad545dd38b0d660f2b725bd7522c477f7a 100644 (file)
@@ -326,7 +326,7 @@ HostnameLookups on
 RewriteEngine on
 RewriteMap    multiplex         txt:/path/to/map.mirrors
 RewriteCond  %{REMOTE_HOST}     ([a-z]+)$ [NC]
-RewriteRule   ^(.*)$  ${multiplex:<strong>%1</strong>|http://www.example.com/}$1  [R,L]
+RewriteRule   ^/(.*)$  ${multiplex:<strong>%1</strong>|http://www.example.com/}$1  [R,L]
 </pre></div>
 
 <div class="example"><pre>
index e8a7af5c69da924465cd50e5c279f86283f48852..8850219280cca86385c8100375127f14167909d6 100644 (file)
@@ -327,7 +327,7 @@ HostnameLookups on
 RewriteEngine on
 RewriteMap    multiplex         txt:/path/to/map.mirrors
 RewriteCond  %{REMOTE_HOST}     ([a-z]+)$ [NC]
-RewriteRule   ^(.*)$  ${multiplex:<strong>%1</strong>|http://www.example.com/}$1  [R,L]
+RewriteRule   ^/(.*)$  ${multiplex:<strong>%1</strong>|http://www.example.com/}$1  [R,L]
 </pre></example>
 
 <example><pre>