From: Rich Bowen Date: Wed, 29 Apr 2026 21:06:40 +0000 (+0000) Subject: mod_rewrite: Fix remaining .htaccess-specific language in per-directory context docs... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13eea6e6edaf41bfd780f98ddecc3d89d9e8ee25;p=thirdparty%2Fapache%2Fhttpd.git mod_rewrite: Fix remaining .htaccess-specific language in per-directory context docs (Bug 60377 followup) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933562 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 327ffa7f15..f0f8cf7ebe 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1111,14 +1111,14 @@ RewriteRule "^/$" "/homepage.std.html" [L]
  • In per-directory context (Directory and .htaccess), the Pattern is matched against only a partial path, for example a request of "/app1/index.html" may result in comparison against "app1/index.html" - or "index.html" depending on where the RewriteRule is - defined.

    + or "index.html" depending on the directory-path for which the + RewriteRule applies.

    -

    The directory-path for which the rule is defined is stripped from the currently mapped +

    The directory-path to which the rule applies is stripped from the currently mapped filesystem path before comparison (up to and including a trailing slash). The net result of this per-directory prefix stripping is that rules in this context only match against the portion of the currently mapped filesystem path - "below" where the rule is defined.

    + "below" the directory-path to which the rule applies.

    Directives such as DocumentRoot and Alias, or even the @@ -1152,8 +1152,8 @@ restriction is required for security reasons.

  • directive for more information regarding what prefix will be added back to relative substitutions. -
  • If you wish to match against the full URL-path in a per-directory -(htaccess) RewriteRule, use the %{REQUEST_URI} variable in +
  • If you wish to match against the full URL-path in a per-directory context +RewriteRule, use the %{REQUEST_URI} variable in a RewriteCond.
  • The removed prefix always ends with a slash, meaning the matching occurs against a string which @@ -1386,7 +1386,7 @@ cannot use $N in the substitution string! END Stop the rewriting process immediately and don't apply any more rules. Also prevents further execution of rewrite rules - in per-directory and .htaccess context. (Available in 2.3.9 and later) + in per-directory context. (Available in 2.3.9 and later) details ...