From 8ce7c89d5892b2acc70a876d3fd2ad0676c8dbb4 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sun, 9 Oct 2011 22:29:41 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_rewrite.html.en | 14 ++++++++------ docs/manual/mod/mod_rewrite.xml | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index e54c392955..422fdbb3d0 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 a77091a542..757a45786a 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 -- 2.50.1