]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make the recipe match the problem description.
authorRich Bowen <rbowen@apache.org>
Fri, 7 Dec 2007 18:29:41 +0000 (18:29 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 7 Dec 2007 18:29:41 +0000 (18:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@602174 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/misc/rewriteguide.xml

index c8e0e395d297125cc3209c4a27c2cc3e659ced4e..697feb270a0cca3686a220a294c232c284e36282 100644 (file)
@@ -143,15 +143,15 @@ RewriteRule   ^/([uge])/(<strong>[^/]+</strong>)$  /$1/$2<strong>/</strong>   [<
         <dd>
 <example><pre>
 # 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]
+RewriteRule ^/(.*)         http://www.example.com:%{SERVER_PORT}/$1 [L,R]
 
 # 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]
+RewriteRule ^/(.*)         http://www.example.com/$1 [L,R]
 </pre></example>
         </dd>
       </dl>