From cf705852987dd380dbcf53bea9a9258407616929 Mon Sep 17 00:00:00 2001 From: Luca Toscano Date: Tue, 12 Feb 2019 08:06:11 +0000 Subject: [PATCH] mod_rewrite doc rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1853418 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 5de13b83843..b5779f1281f 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1125,7 +1125,30 @@ matches in per-directory context. (including their regular expression counterparts), this should never be necessary and is unsupported. A likely feature to break in these contexts is relative substitutions. + +
  • The If blocks +follow the rules of the directory context.
  • + +
  • By default, mod_rewrite overrides rules when +merging sections belonging to the same context. The RewriteOptions directive can change this behavior, +for example using the Inherit setting.
  • + +
  • The RewriteOptions also regulates the +behavior of sections that are stated at the same nesting level of the configuration. In the +following example, by default only the RewriteRules stated in the second +If block +are considered, since the first ones are overridden. Using RewriteOptions Inherit forces mod_rewrite to merge the two +sections and consider both set of statements, rather than only the last one.
  • +
    <If "true">
    +  # Without RewriteOptions Inherit, this rule is overridden by the next
    +  # section and no redirect will happen for URIs containing 'foo'
    +  RewriteRule foo http://example.com/foo [R]
    +</If>
    +<If "true">
    +  RewriteRule bar http://example.com/bar [R]
    +</If>
    +

    For some hints on regular -- 2.47.3