]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
as per https://lists.apache.org/thread/g36po3tp24xl92s182plxlgv8rnl1hj8
authorRich Bowen <rbowen@apache.org>
Wed, 11 Jan 2023 15:41:11 +0000 (15:41 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 11 Jan 2023 15:41:11 +0000 (15:41 +0000)
clarify that chained RewriteCond directives are "fast fail".

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1906607 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index 5be0d676f7b7fb235c95e7a79509fe068e195c42..dbe34e99ca69c537b89d5269a2050e812c5eb95b 100644 (file)
@@ -757,6 +757,13 @@ RewriteRule  "^/$"                 "/homepage.std.html"     [L]</pre>
         the homepage is served. Otherwise, the standard page is served.
         </p>
 
+        <p>By default, multiple <code class="directive">RewriteCond</code>s
+        are evaluated in sequence with an implied logical <strong>AND</strong>.
+        If a condition fails, in the absence of an
+        <strong><code>OR</code></strong> flag, the entire ruleset is abandoned,
+        and further conditions are not evaluated.
+        </p>
+
 
 </div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
index 7da7edf23cd55880bf14b2c1a4184d7226085b4a..dbc37fd79a36ff97bafdd2b7fcba43c729738c82 100644 (file)
@@ -1052,6 +1052,13 @@ RewriteRule  "^/$"                 "/homepage.std.html"     [L]
         the homepage is served. Otherwise, the standard page is served.
         </p>
 
+        <p>By default, multiple <directive>RewriteCond</directive>s
+        are evaluated in sequence with an implied logical <strong>AND</strong>.
+        If a condition fails, in the absence of an
+        <strong><code>OR</code></strong> flag, the entire ruleset is abandoned,
+        and further conditions are not evaluated.
+        </p>
+
 </usage>
 
 </directivesynopsis>