From 30839477eb8f8ecfa447f605dd21613d6d435936 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Wed, 16 Sep 2009 20:10:15 +0000 Subject: [PATCH] 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 --- docs/manual/rewrite/rewrite_guide.html.en | 8 ++++---- docs/manual/rewrite/rewrite_guide.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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]
 
-- 2.47.2