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 19:29:42 UTC
svn commit: r602174 -
/httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
Author: rbowen
Date: Fri Dec 7 10:29:41 2007
New Revision: 602174
URL: http://svn.apache.org/viewvc?rev=602174&view=rev
Log:
Make the recipe match the problem description.
Modified:
httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
Modified: httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml?rev=602174&r1=602173&r2=602174&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/misc/rewriteguide.xml Fri Dec 7 10:29:41 2007
@@ -143,15 +143,15 @@
<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>