From: Ralf S. Engelschall Date: Thu, 22 Oct 1998 12:02:27 +0000 (+0000) Subject: Fix a few bugs in the mod_rewrite documentation by the X-Git-Tag: 1.3.4~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3d8c633182581f502394d83d8209e9abd38c97;p=thirdparty%2Fapache%2Fhttpd.git Fix a few bugs in the mod_rewrite documentation by the help of some hints from Adam M Donahue . git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82292 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html b/docs/manual/mod/mod_rewrite.html index 0e7c8c6aabb..d65a01e4394 100644 --- a/docs/manual/mod/mod_rewrite.html +++ b/docs/manual/mod/mod_rewrite.html @@ -248,21 +248,21 @@ rule. When it fails mod_rewrite immediately stops processing this rule and continues with the next rule. If the Pattern matched, mod_rewrite looks for corresponding rule conditions. If none are present, it just substitutes the URL with a new value which is constructed from the string -Substitution and goes on with its rule-looping. But if conditions But +Substitution and goes on with its rule-looping. But if conditions exists, it starts an inner loop for processing them in order they are listed. For conditions the logic is different: We don't match a pattern against the current URL. Instead we first create a string -TestString by expanding variables, back-references, map lookups, etc. -and then we try to match TestPattern against it. If the pattern -doesn't match, the complete set of conditions and the corresponding rule fails. -If the pattern matches, then the next condition is processed until no more -condition is available. If all conditions matched processing is continued with -the substitution of the URL with Substitution. +TestString by expanding variables, back-references, map lookups, +etc. and then we try to match CondPattern against it. If the +pattern doesn't match, the complete set of conditions and the corresponding +rule fails. If the pattern matches, then the next condition is processed +until no more condition is available. If all conditions matched processing is +continued with the substitution of the URL with Substitution.

Regex Back-Reference Availability

One important thing here has to be remembered: Whenever you -use parenthesis in Pattern or in one of the TestPattern +use parenthesis in Pattern or in one of the CondPattern back-reference are internally created which can be used with the strings $N and %N (see below). And these are available for creating the strings Substitution and