From: Rich Bowen Date: Wed, 16 Sep 2009 20:10:15 +0000 (+0000) Subject: Text refers to example.com, but example refers to X-Git-Tag: 2.2.14~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30839477eb8f8ecfa447f605dd21613d6d435936;p=thirdparty%2Fapache%2Fhttpd.git Text refers to example.com, but example refers to fully.qualified.domain.name git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@815944 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_guide.html.en b/docs/manual/rewrite/rewrite_guide.html.en index 5bfb3e0e085..01a66954a44 100644 --- a/docs/manual/rewrite/rewrite_guide.html.en +++ b/docs/manual/rewrite/rewrite_guide.html.en @@ -117,17 +117,17 @@ RewriteRule ^/u/([^/]+)$ /$1/$2/ [

For sites running on a port other than 80:

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

And for a site running on port 80

-RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
+RewriteCond %{HTTP_HOST}   !^www\.example\.com [NC]
 RewriteCond %{HTTP_HOST}   !^$
-RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R,NE]
+RewriteRule ^/?(.*)         http://www.example.com/$1 [L,R,NE]
 
diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml index 907721b1d5a..1260285ec7f 100644 --- a/docs/manual/rewrite/rewrite_guide.xml +++ b/docs/manual/rewrite/rewrite_guide.xml @@ -106,17 +106,17 @@ RewriteRule ^/u/([^/]+)$ /$1/$2/ [

For sites running on a port other than 80:

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

And for a site running on port 80

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