From: Rich Bowen Date: Wed, 13 May 2009 01:41:23 +0000 (+0000) Subject: Adds [NE] to the canonical hostname rules, as per X-Git-Tag: 2.2.12~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16e63c9714d410c57e986c0fb4bf7ca41d1593ff;p=thirdparty%2Fapache%2Fhttpd.git Adds [NE] to the canonical hostname rules, as per https://issues.apache.org/bugzilla/show_bug.cgi?id=47186 to avoid double-escaping of URIs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@774162 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_guide.html.en b/docs/manual/rewrite/rewrite_guide.html.en index 0fcb644b0e5..5bfb3e0e085 100644 --- a/docs/manual/rewrite/rewrite_guide.html.en +++ b/docs/manual/rewrite/rewrite_guide.html.en @@ -120,14 +120,14 @@ RewriteRule ^/u/([^/]+)$ /$1/$2/ [

And for a site running on port 80

 RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
 RewriteCond %{HTTP_HOST}   !^$
-RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]
+RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R,NE]
 
diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml index 3daf0ba0bc9..907721b1d5a 100644 --- a/docs/manual/rewrite/rewrite_guide.xml +++ b/docs/manual/rewrite/rewrite_guide.xml @@ -109,14 +109,14 @@ RewriteRule ^/u/([^/]+)$ /$1/$2/ [

And for a site running on port 80

 RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
 RewriteCond %{HTTP_HOST}   !^$
-RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]
+RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R,NE]