httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1199568 - /httpd/httpd/trunk/docs/manual/rewrite/tech.xml
Date Wed, 09 Nov 2011 00:34:40 GMT
Author: rbowen
Date: Wed Nov  9 00:34:39 2011
New Revision: 1199568

URL: http://svn.apache.org/viewvc?rev=1199568&view=rev
Log:
Further clarification to address bug #30021

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/tech.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/tech.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/tech.xml?rev=1199568&r1=1199567&r2=1199568&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/tech.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/tech.xml Wed Nov  9 00:34:39 2011
@@ -81,7 +81,9 @@ and URL matching.</p>
     <directive module="mod_rewrite">RewriteBase</directive> directive to
     see how you can further manipulate how this is handled.) Then, a new
     internal subrequest is issued with the new URL. This restarts
-    processing of the API phases.</p>
+    processing of the request phases. (Be careful to avoid rules that
+    can cause looping. See <a href="http://wiki.apache.org/httpd/RewriteLooping">RewriteLooping</a>
+    for further discussion of this problem.</p>
 
     <p>Because of this further manipulation of the URL in per-directory
     context, you'll need to take care to craft your rewrite rules
@@ -149,16 +151,17 @@ and URL matching.</p>
           alt="Flow of RewriteRule and RewriteCond matching" /><br />
       <dfn>Figure 1:</dfn>The control flow through the rewriting ruleset
 </p>
-      <p>As you can see, first the URL is matched against the
-      <em>Pattern</em> of each rule. When it fails mod_rewrite
-      immediately stops processing this rule and continues with the
+      <p>First the URL is matched against the
+      <em>Pattern</em> of each rule. If it fails, mod_rewrite
+      immediately stops processing this rule, and continues with the
       next rule. If the <em>Pattern</em> matches, mod_rewrite looks
-      for corresponding rule conditions. If none are present, it
-      just substitutes the URL with a new value which is
-      constructed from the string <em>Substitution</em> and goes on
+      for corresponding rule conditions (RewriteCond directives,
+      appearing immediately above the RewriteRule in the configuration).
+      If none are present, it substitutes the URL with a new value, which is
+      constructed from the string <em>Substitution</em>, and goes on
       with its rule-looping. But if conditions exist, it starts an
       inner loop for processing them in the order that they are
-      listed. For conditions the logic is different: we don't match
+      listed. For conditions, the logic is different: we don't match
       a pattern against the current URL. Instead we first create a
       string <em>TestString</em> by expanding variables,
       back-references, map lookups, <em>etc.</em> and then we try



Mime
View raw message