httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48687] New: mod_rewrite ignores trailing dot in request URI on Windows platform
Date Fri, 05 Feb 2010 20:24:10 GMT

           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

Created an attachment (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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message