]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Bug 70018: Document %N (RewriteCond) back-references alongside $N in substitution...
authorRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 20:26:58 +0000 (20:26 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 20:26:58 +0000 (20:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933689 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index 066c2342fcf3b4f794608314ce0f5b7392bd9a6d..815653f14b06f3aa5464ac9a0c39ec7c137db3b9 100644 (file)
@@ -1299,7 +1299,13 @@ cannot use <code>$N</code> in the substitution string!
       (<strong>N</strong>=0..9). <code>$0</code> refers to the
       entire string matched by the <em>Pattern</em>, while
       <code>$1</code>..<code>$9</code> refer to the corresponding
-      captured groups from the matched <em>Pattern</em>. The server-variables are the same
+      captured groups from the matched <em>Pattern</em>.
+      Similarly, back-references
+      <code>%0</code>..<code>%9</code> refer to the most recently
+      matched
+      <directive module="mod_rewrite">RewriteCond</directive>
+      <em>CondPattern</em>: <code>%0</code> is the entire match and
+      <code>%1</code>..<code>%9</code> are the captured groups. The server-variables are the same
       as for the <em>TestString</em> of a
       <directive module="mod_rewrite">RewriteCond</directive>
       directive. The mapping-functions come from the