https://bz.apache.org/bugzilla/show_bug.cgi?id=70016
Bug ID: 70016
Summary: RewriteRule Directive: Incorrect definition of $0
back-reference
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
URL: https://httpd.apache.org/docs/trunk/en/mod/mod_rewrite
.html#rewriterule
OS: All
Status: NEW
Severity: trivial
Priority: P3
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
According to the documentation of the RewriteRule directive:
> Back-references are identifiers of the form $N (N=0..9), which will be
> replaced by the contents of the Nth group of the matched Pattern.
While this is approximately correct for 1…9, there is obviously no “zeroth”
group.
I suggest:
> Back-references of the first type are identifiers of the form $n (n=0…9).
> Back-references are replaced by the contents of the nth group of the matched
> Pattern, except for $0, which is replaced by the whole matched path.
By the way, I suggest moving that directly in bullet #1.
🅭🄍: https://www.philippecloutier.com/Common+infrastructure+licensing#its
--
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]