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

svn commit: r561902 - in /httpd/httpd/trunk/docs/manual/mod: mod_rewrite.html.en mod_rewrite.xml

Author: slive
Date: Wed Aug  1 11:39:04 2007
New Revision: 561902

URL: http://svn.apache.org/viewvc?view=rev&rev=561902
Log:
R flag to mod_rewrite can set any status code

PR: 25917

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en?view=diff&rev=561902&r1=561901&r2=561902
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en Wed Aug  1 11:39:04 2007
@@ -1452,12 +1452,12 @@
 
          <li>'<strong><code>redirect|R</code>
           [=<em>code</em>]</strong>' (force <a id="redirect" name="redirect"><strong>r</strong>edirect</a>)<br />
-          Prefix <em>Substitution</em> with
+          <p>Prefix <em>Substitution</em> with
           <code>http://thishost[:thisport]/</code> (which makes the
           new URL a URI) to force a external redirection. If no
           <em>code</em> is given, a HTTP response of 302 (MOVED
           TEMPORARILY) will be returned. If you want to use other response
-          codes in the range 300-400, simply specify the appropriate number
+          codes, simply specify the appropriate number
           or use one of the following symbolic names:
           <code>temp</code> (default), <code>permanent</code>,
           <code>seeother</code>. Use this for rules to
@@ -1472,7 +1472,12 @@
           <code>http://thishost[:thisport]/</code> to the URL, and rewriting
 	  will continue. Usually, you will want to stop rewriting at this point,
 	  and redirect immediately. To stop rewriting, you should add 
-	  the 'L' flag.
+	  the 'L' flag.</p>
+          <p>While this is typically used for redirects, any valid status
+          code can be given here. If the status code is outside the redirect
+          range (300-399), then the <em>Substitution</em> string is dropped
+          and rewriting is stopped as if the <code>L</code> flag was
+          used.</p>
         </li>
 
         <li>'<strong><code>skip|S</code></strong>=<em>num</em>'

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?view=diff&rev=561902&r1=561901&r2=561902
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Wed Aug  1 11:39:04 2007
@@ -1472,12 +1472,12 @@
          <li>'<strong><code>redirect|R</code>
           [=<em>code</em>]</strong>' (force <a id="redirect"
           name="redirect"><strong>r</strong>edirect</a>)<br />
-          Prefix <em>Substitution</em> with
+          <p>Prefix <em>Substitution</em> with
           <code>http://thishost[:thisport]/</code> (which makes the
           new URL a URI) to force a external redirection. If no
           <em>code</em> is given, a HTTP response of 302 (MOVED
           TEMPORARILY) will be returned. If you want to use other response
-          codes in the range 300-400, simply specify the appropriate number
+          codes, simply specify the appropriate number
           or use one of the following symbolic names:
           <code>temp</code> (default), <code>permanent</code>,
           <code>seeother</code>. Use this for rules to
@@ -1492,7 +1492,12 @@
           <code>http://thishost[:thisport]/</code> to the URL, and rewriting
 	  will continue. Usually, you will want to stop rewriting at this point,
 	  and redirect immediately. To stop rewriting, you should add 
-	  the 'L' flag.
+	  the 'L' flag.</p>
+          <p>While this is typically used for redirects, any valid status
+          code can be given here. If the status code is outside the redirect
+          range (300-399), then the <em>Substitution</em> string is dropped
+          and rewriting is stopped as if the <code>L</code> flag was
+          used.</p>
         </li>
 
         <li>'<strong><code>skip|S</code></strong>=<em>num</em>'