]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Text refers to example.com, but example refers to
authorRich Bowen <rbowen@apache.org>
Wed, 16 Sep 2009 20:10:15 +0000 (20:10 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 16 Sep 2009 20:10:15 +0000 (20:10 +0000)
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
docs/manual/rewrite/rewrite_guide.xml

index 5bfb3e0e085b8be495b46a94325e3d3176d6ad38..01a66954a44439fe0055d3fa7867cb9626585dff 100644 (file)
@@ -117,17 +117,17 @@ RewriteRule   ^/u/(<strong>[^/]+</strong>)$  /$1/$2<strong>/</strong>   [<strong
         <dd>
 <p>For sites running on a port other than 80:</p>
 <div class="example"><pre>
-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]
 </pre></div>
 
 <p>And for a site running on port 80</p>
 <div class="example"><pre>
-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]
 </pre></div>
         </dd>
       </dl>
index 907721b1d5a52782aa71784bcf0766f55cf320db..1260285ec7f3042b53227fe16ac085bf55fdcd0b 100644 (file)
@@ -106,17 +106,17 @@ RewriteRule   ^/u/(<strong>[^/]+</strong>)$  /$1/$2<strong>/</strong>   [<strong
         <dd>
 <p>For sites running on a port other than 80:</p>
 <example><pre>
-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]
 </pre></example>
 
 <p>And for a site running on port 80</p>
 <example><pre>
-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]
 </pre></example>
         </dd>
       </dl>