From: Rich Bowen Date: Fri, 1 May 2026 13:53:58 +0000 (+0000) Subject: Bug 60377: Remaining .htaccess-specific wording in rewrite docs; .htaccess IS per... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=237a6d8aaf3a635dbd83b5e64a9c16c874ad1050;p=thirdparty%2Fapache%2Fhttpd.git Bug 60377: Remaining .htaccess-specific wording in rewrite docs; .htaccess IS per-directory context git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933652 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 6cd8e76343..49629c2072 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1246,8 +1246,8 @@ cannot use $N in the substitution string! you specify a Substitution string of /www/file.html, then this will be treated as a URL-path unless a directory named www - exists at the root or your file-system (or, in the case of - using rewrites in a .htaccess file, relative to + exists at the root of your file-system (or, in the case of + per-directory rewrites, relative to your document root), in which case it will be treated as a file-system path. If you wish other URL-mapping directives (such as $N in the substitution string! last|L Stop the rewriting process immediately and don't apply any - more rules. Especially note caveats for per-directory and - .htaccess context (see also the END flag). details ... diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index 5b8da69ca2..ac74241800 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -58,7 +58,7 @@ long form, so that you remember what each flag is supposed to do. Some flags take one or more arguments. Flags are not case sensitive.

Flags that alter metadata associated with the request (T=, H=, E=) -have no affect in per-directory and htaccess context, when a substitution +have no effect in per-directory context, when a substitution (other than '-') is performed during the same round of rewrite processing.

@@ -370,7 +370,7 @@ RewriteCond "%{ENV:rewritten}" =1

Note that environment variables do not survive an external redirect. You might consider using the [CO] flag to set a -cookie. For per-directory and htaccess rewrites, where the final +cookie. For per-directory rewrites, where the final substitution is processed as an internal redirect, environment variables from the previous round of rewriting are prefixed with "REDIRECT_".