https://issues.apache.org/bugzilla/show_bug.cgi?id=48796
Summary: doc: mod_rewrite REQUEST_FILENAME contains relative
path
Product: Apache httpd-2
Version: 2.0-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
mod_rewrite docs cause headache when developing/debugging rewrite rules with
REQUEST_FILENAME. The doc says:
REQUEST_FILENAME
The full local filesystem path to the file or script matching the request.
while in fact REQUEST_FILENAME and SCRIPT_FILENAME contain path relative to
DOCUMENT_ROOT.
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#rewritecond
This is a known source of confusion:
http://serverfault.com/questions/78125/mod-rewrite-request-filename-doesnt-contain-absolute-path
http://marc-abramowitz.com/archives/2005/12/18/whats-up-with-request_filename-in-mod_rewrite/
It also worth mentioning that REQUEST_FILENAME always starts with slash even
though it is relative path.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]