]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_rewrite: Clarify Substitution description
authorRich Bowen <rbowen@apache.org>
Thu, 11 Jun 2026 12:58:18 +0000 (12:58 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 11 Jun 2026 12:58:18 +0000 (12:58 +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/branches/2.4.x@1935195 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index 4a35efc2cafeb8c7bd8d916386e88ce67ce3b8b4..3c256351574c77f368c484a295e7443c1dabdd6e 100644 (file)
@@ -1220,8 +1220,9 @@ sections and consider both set of statements, rather than only the last one.</li
       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>