https://bz.apache.org/bugzilla/show_bug.cgi?id=57911
Bug ID: 57911
Summary: Rewrite documentation unclear or wrong about what is
matched (URL path)
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P2
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
http://httpd.apache.org/docs/trunk/en/mod/mod_rewrite.html#rewriterule says:
Pattern is a perl compatible regular expression. On the first RewriteRule, it
is matched against the (%-decoded) URL-path of the request, or, in
per-directory context (see below), the URL path relative to that per-directory
context. Subsequent patterns are matched against the output of the last
matching RewriteRule.
I think the second part is wrong, or at least unclear.
If "URL path" refers to a "URL-path", which is defined as "A
DocumentRoot-relative path", there is a contradiction. If not, "the URL path
relative to that per-directory context" is unclear.
This paragraph was changed recently (see #53153 for background).
In https://bz.apache.org/bugzilla/show_bug.cgi?id=52000#c11 I suggested
"the request's path relative to the directory for which the rule is defined"
but I don't know if this is clear.
By the way, in the first sentence, "perl compatible regular expression" could
be replaced with "regex", defined in
http://httpd.apache.org/docs/trunk/en/mod/directive-dict.html#Syntax
--
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]