]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_rewrite: Fix remaining .htaccess-specific language in per-directory context docs...
authorRich Bowen <rbowen@apache.org>
Wed, 29 Apr 2026 21:06:40 +0000 (21:06 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 29 Apr 2026 21:06:40 +0000 (21:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933562 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index 327ffa7f15a692248d349b916dcfed33c851ceb6..f0f8cf7ebe0fa6f75b4107d493c5ff808578d90a 100644 (file)
@@ -1111,14 +1111,14 @@ RewriteRule  "^/$"                 "/homepage.std.html"     [L]
       <li><p>In per-directory context (<directive module="core">Directory</directive> and .htaccess),
       the <em>Pattern</em> 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 <directive>RewriteRule</directive> is 
-      defined.</p>
+      or "index.html" depending on the directory-path for which the
+      <directive>RewriteRule</directive> applies.</p>
 
-      <p>The directory-path for which the rule is defined is stripped from the currently mapped
+      <p>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.</p>
+      "below" the directory-path to which the rule applies.</p>
 
       <p>Directives such as <directive module="core"
       >DocumentRoot</directive> and <directive module="mod_alias">Alias</directive>, or even the 
@@ -1152,8 +1152,8 @@ restriction is required for security reasons.</li>
 directive for more information regarding what prefix will be added back to
 relative substitutions.</li>
 
-<li> If you wish to match against the full URL-path in a per-directory
-(htaccess) RewriteRule, use the <code>%{REQUEST_URI}</code> variable in
+<li> If you wish to match against the full URL-path in a per-directory context
+RewriteRule, use the <code>%{REQUEST_URI}</code> variable in
 a <directive module="mod_rewrite">RewriteCond</directive>.</li>
 
 <li>The removed prefix always ends with a slash, meaning the matching occurs against a string which
@@ -1386,7 +1386,7 @@ cannot use <code>$N</code> in the substitution string!
         <td>END</td>
         <td>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)
         <em><a href="../rewrite/flags.html#flag_end">details ...</a></em></td>
     </tr>
     <tr>