From: Rich Bowen Date: Sat, 2 May 2026 19:33:18 +0000 (+0000) Subject: Bug 70019: Fix contradictory file-system path vs URL-path descriptions; filesystem... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34a901f6fe17466d5dc17771f9e1099c191e9e58;p=thirdparty%2Fapache%2Fhttpd.git Bug 70019: Fix contradictory file-system path vs URL-path descriptions; filesystem-existence guessing is server-context only, not per-directory git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933713 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 63fdb80c24..e4ce9c1e5b 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1231,26 +1231,23 @@ cannot use $N in the substitution string!
file-system path
Designates the location on the file-system of the resource - to be delivered to the client. Substitutions are only - treated as a file-system path when the rule is configured in - server (virtualhost) context and the first component of the - path in the substitution exists in the file-system
+ to be delivered to the client. A substitution beginning with + / is treated as a file-system path only in + server or virtual host context, and only when the first + component of the path exists in the file-system. In + per-directory context, + this guessing does not occur.
URL-path
A DocumentRoot-relative path to the - resource to be served. Note that mod_rewrite - tries to guess whether you have specified a file-system path - or a URL-path by checking to see if the first segment of the - path exists at the root of the file-system. For example, if - 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 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 + resource to be served. In server or virtual host context, + if the first segment of the path exists at the root of the + file-system, the substitution is treated as a file-system + path instead. For example, /www/file.html is + a URL-path unless a directory named www exists + at the root of the file-system. If you wish other URL-mapping directives (such as Alias) to be applied to the resulting URL-path, use the [PT] flag as