]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_rewrite: Clarify Substitution description
authorRich Bowen <rbowen@apache.org>
Thu, 11 Jun 2026 12:57:46 +0000 (12:57 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 11 Jun 2026 12:57:46 +0000 (12:57 +0000)
The opening sentence of the Substitution section implied that Pattern
always matches when a rule fires, which is incorrect for negated rules.
Reword to be neutral about how the rule was triggered, and add a
cross-reference to "What is matched?" for context.

Resolves bz#70061

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935194 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index 6f9b071c9552e888e4115d144d27e5792db12462..ffcab8e97f7b10fad3bda2240c5d5a2fa85a64a3 100644 (file)
@@ -1144,8 +1144,9 @@ guide for complete details.
       section of the mod_rewrite introduction.</p>
 
       <p>The <a id="rhs" name="rhs"><em>Substitution</em></a> of a
-      rewrite rule is the string that replaces the original URL-path that
-      was matched by <em>Pattern</em>.  The <em>Substitution</em> may
+      rewrite rule is the string that replaces the URL-path (see
+      <a href="#what_is_matched">"What is matched?"</a> above)
+      when the rule's conditions are met.  The <em>Substitution</em> may
       be a:</p>
 
       <dl>