You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2007/12/07 20:06:03 UTC

svn commit: r602180 - /httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en

Author: rbowen
Date: Fri Dec  7 11:05:58 2007
New Revision: 602180

URL: http://svn.apache.org/viewvc?rev=602180&view=rev
Log:
Make the recipe match the statement of the problem.

Modified:
    httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en

Modified: httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en?rev=602180&r1=602179&r2=602180&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.html.en Fri Dec  7 11:05:58 2007
@@ -147,15 +147,15 @@
         <dd>
 <div class="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></div>
         </dd>
       </dl>
@@ -2107,4 +2107,4 @@
 </div><div id="footer">
 <p class="apache">Copyright 2007 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
-</body></html>
\ No newline at end of file
+</body></html>