]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Try to clarify what is matched in a rewrite rule as per bug #53080.
authorDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 09:43:51 +0000 (09:43 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 09:43:51 +0000 (09:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332592 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/intro.html.en
docs/manual/rewrite/intro.xml

index 3cff570b4d8e92212604505d5868a10d32142b8d..314204c99a1a6f2197073f468ec955aa91ad629b 100644 (file)
@@ -168,12 +168,15 @@ of three arguments separated by spaces. The arguments are</p>
 <li><var>[flags]</var>: options affecting the rewritten request.</li>
 </ol>
 
-<p>The <var>Pattern</var> is always a <a href="#regex">regular
-expression</a> matched against the URL-Path of the incoming request
-(the part after the hostname but before any question mark indicating
-the beginning of a query string) or, in per-directory context, against 
-the request's path relative to the directory for which the rule is 
-defined.</p>
+<p>The <var>Pattern</var> is a <a href="#regex">regular expression</a>. 
+It is initially (for the first rewrite rule or until a substitution occurs) 
+matched against the URL-path of the incoming request (the part after the 
+hostname but before any question mark indicating the beginning of a query 
+string) or, in per-directory context, against the request's path relative 
+to the directory for which the rule is defined. Once a substitution has 
+occured, the rules that follow are matched against the substituted
+value.
+</p>
 
 <p class="figure">
       <img src="../images/syntax_rewriterule.png" alt="Syntax of the RewriteRule directive" /><br />
index 88a64d2e7db044f9dcf9afa6ba5dd4f085ef20f8..ea0d4db321ecd6e12e8582119a5cf3d25f81d7ca 100644 (file)
@@ -173,12 +173,15 @@ of three arguments separated by spaces. The arguments are</p>
 <li><var>[flags]</var>: options affecting the rewritten request.</li>
 </ol>
 
-<p>The <var>Pattern</var> is always a <a href="#regex">regular
-expression</a> matched against the URL-Path of the incoming request
-(the part after the hostname but before any question mark indicating
-the beginning of a query string) or, in per-directory context, against 
-the request's path relative to the directory for which the rule is 
-defined.</p>
+<p>The <var>Pattern</var> is a <a href="#regex">regular expression</a>. 
+It is initially (for the first rewrite rule or until a substitution occurs) 
+matched against the URL-path of the incoming request (the part after the 
+hostname but before any question mark indicating the beginning of a query 
+string) or, in per-directory context, against the request's path relative 
+to the directory for which the rule is defined. Once a substitution has 
+occured, the rules that follow are matched against the substituted
+value.
+</p>
 
 <p class="figure">
       <img src="../images/syntax_rewriterule.png"