From: Rich Bowen Date: Sun, 9 Oct 2011 22:29:41 +0000 (+0000) Subject: Clarify behavior of multiple rewrite rules in the same scope. refs https://issues... X-Git-Tag: 2.3.15~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce7c89d5892b2acc70a876d3fd2ad0676c8dbb4;p=thirdparty%2Fapache%2Fhttpd.git Clarify behavior of multiple rewrite rules in the same scope. refs https://issues.apache.org/bugzilla/show_bug.cgi?id=51968 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180734 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index e54c3929558..422fdbb3d03 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -936,7 +936,7 @@ and automatically added after any relative (not starting with a slash or protocol name) substitution encounters the end of a rule set. See the RewriteBase directive for more information regarding what prefix will be added back to -relative substutions. +relative substitions.
  • If you wish to match against the full URL-path in a per-directory (htaccess) RewriteRule, use the %{REQUEST_URI} variable in @@ -1045,14 +1045,16 @@ cannot use $N in the substitution string! RewriteMap directive and are explained there. These three types of variables are expanded in the order above.

    -

    As already mentioned, all rewrite rules are - applied to the Substitution (in the order in which - they are defined - in the config file). The URL is completely +

    Rewrite rules are applied to the results of previous rewrite + rules, in the order in which they are defined + in the config file. The URL is completely replaced by the Substitution and the rewriting process continues until all rules have been applied, or it is explicitly terminated by a - L flag.

    + L flag, + or other flag which implies immediate termination, such as + END or + F.

    Modifying the Query String

    By default, the query string is passed through unchanged. You diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index a77091a5423..757a45786a2 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -940,7 +940,7 @@ and automatically added after any relative (not starting with a slash or protocol name) substitution encounters the end of a rule set. See the RewriteBase directive for more information regarding what prefix will be added back to -relative substutions.

  • +relative substitions.
  • If you wish to match against the full URL-path in a per-directory (htaccess) RewriteRule, use the %{REQUEST_URI} variable in @@ -1053,14 +1053,16 @@ cannot use $N in the substitution string! RewriteMap directive and are explained there. These three types of variables are expanded in the order above.

    -

    As already mentioned, all rewrite rules are - applied to the Substitution (in the order in which - they are defined - in the config file). The URL is completely +

    Rewrite rules are applied to the results of previous rewrite + rules, in the order in which they are defined + in the config file. The URL is completely replaced by the Substitution and the rewriting process continues until all rules have been applied, or it is explicitly terminated by a - L flag.

    + L flag, + or other flag which implies immediate termination, such as + END or + F.

    Modifying the Query String

    By default, the query string is passed through unchanged. You