]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Added a description for a recipe which has long been without one.
authorRich Bowen <rbowen@apache.org>
Thu, 12 Aug 2004 01:27:34 +0000 (01:27 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 12 Aug 2004 01:27:34 +0000 (01:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@104631 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/misc/rewriteguide.html.en
docs/manual/misc/rewriteguide.xml

index be42f91956a944b5f48308f7438a85721b3485e9..9e3536df0aa9a407807478e9823e6f320917d5af 100644 (file)
@@ -135,16 +135,24 @@ RewriteRule   ^/([uge])/(<strong>[^/]+</strong>)$  /$1/$2<strong>/</strong>   [<
       <dl>
         <dt>Description:</dt>
 
-        <dd>...</dd>
+        <dd>The goal of this rule is to force the use of a particular
+        hostname, in preference to other hostnames which may be used to
+        reach the same site. For example, if you wish to force the use
+        of <strong>www.example.com</strong> instead of
+        <strong>example.com</strong>, you might use a variant of the
+        following recipe.</dd>
 
         <dt>Solution:</dt>
 
         <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}   !^$
 RewriteCond %{SERVER_PORT} !^80$
 RewriteRule ^/(.*)         http://fully.qualified.domain.name:%{SERVER_PORT}/$1 [L,R]
+
+# And for a site running on port 80
 RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
 RewriteCond %{HTTP_HOST}   !^$
 RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]
index e61ca91cdc840413b52663d53a7927c4ba7c71dc..2ac1c7d1e8d579f4398cf3da8dec682343259918 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
-<!-- $Revision: 1.4.2.11 $ -->
+<!-- $Revision: 1.4.2.12 $ -->
 
 <!--
  Copyright 2002-2004 The Apache Software Foundation
@@ -130,16 +130,24 @@ RewriteRule   ^/([uge])/(<strong>[^/]+</strong>)$  /$1/$2<strong>/</strong>   [<
       <dl>
         <dt>Description:</dt>
 
-        <dd>...</dd>
+        <dd>The goal of this rule is to force the use of a particular
+        hostname, in preference to other hostnames which may be used to
+        reach the same site. For example, if you wish to force the use
+        of <strong>www.example.com</strong> instead of
+        <strong>example.com</strong>, you might use a variant of the
+        following recipe.</dd>
 
         <dt>Solution:</dt>
 
         <dd>
 <example><pre>
+# For sites running on a port other than 80
 RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
 RewriteCond %{HTTP_HOST}   !^$
 RewriteCond %{SERVER_PORT} !^80$
 RewriteRule ^/(.*)         http://fully.qualified.domain.name:%{SERVER_PORT}/$1 [L,R]
+
+# And for a site running on port 80
 RewriteCond %{HTTP_HOST}   !^fully\.qualified\.domain\.name [NC]
 RewriteCond %{HTTP_HOST}   !^$
 RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]