From: Rich Bowen Date: Tue, 3 Nov 2009 06:09:35 +0000 (+0000) Subject: The hostname requires a http:// on the front of it, since we're X-Git-Tag: 2.3.3~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ef61a61af574d2f431c407261757b552114a43b;p=apache The hostname requires a http:// on the front of it, since we're redirecting to it. This recipe has apparently been wrong for years. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832310 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/remapping.html.en b/docs/manual/rewrite/remapping.html.en index fcaf1fd38b..d7e6399140 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|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 dcf48aaa3c..e8a7af5c69 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|www.example.com}$1  [R,L]
+RewriteRule   ^(.*)$  ${multiplex:%1|http://www.example.com/}$1  [R,L]