https://issues.apache.org/bugzilla/show_bug.cgi?id=48687
Summary: mod_rewrite ignores trailing dot in request URI on
Windows platform
Product: Apache httpd-2
Version: 2.2.14
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24932)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24932)
mod_rewrite log
When the request URI contains a trailing dot, e.g.
"http://localhost/items/Apple_Inc.", mod_rewrite will not see the dot and treat
the URI as "http://localhost/items/Apple_Inc".
Given the above request URI and the following mod_rewrite configuration via
.htaccess, the resulting redirect URL is
"http://localhost/detail.html?item=Apple_Inc", i.e. the trailing dot is lost:
RewriteEngine on
RewriteRule ^items/(.*)$ /detail.html?item=$1 [R=301,L,QSA]
This was verified on a blank installation of the non-SSL 2.2.14 Windows
distribution. Conversely, when the same version is built from source on Ubuntu
Linux, the redirection works as intended.
Attached is a corresponding log of the above request with RewriteLogLevel 9.
The problem also appears for series of dots. If dots are followed by a
non-alphanumeric character such as a forward slash, the dots disappear and only
the slash prevails. If dots are followed by an alphanumeric character, they
remain.
--
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]