DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23460>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23460

mod_rewrite seems to use all lowercase URLs under Windows

           Summary: mod_rewrite seems to use all lowercase URLs under
                    Windows
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


It seems, that mod_rewrite use all lowercase URLs under Windows.
The typed URL was:
http://www.site.com/Computers/Printers/page=2/order=d/sort=1

I used the following Rewrite rules in .htaccess:
RewriteEngine on
RewriteCond   %{HTTP_HOST}                 ^www\.site\.com$
RewriteRule ^(.*)/cat/(.*)page([0-9]+)[/]?(.*)$   /script.cgi?cat=$1&page=$3
RewriteRule ^(.*)/order(a|d)[/]?(.*)$     /script.cgi?%{QUERY_STRING}&order=$2
RewriteRule ^(.*)/sort([0-9]+)[/]?(.*)$   /script.cgi?%{QUERY_STRING}&sort=$2
RewriteRule ^/script.cgi(.*)$     /cgi-bin/script.cgi?%{QUERY_STRING} [L]

But in rewrite_log.txt appears:
(2) [per-dir c:/path/] rewrite computers/printers/page=2/order=d/sort=1 ->
/script.cgi?cat=computers/printers&page=2&order=d&sort=1


I searched bugzilla, docs, faqs, asked IRC channels, but I did not find any
issues about this problem/behaviour.

I have disabled mod_spelling module, so that can not cause the lowercase URL
issue in rewrite engine. I don't know other feature, what is URL case related, 
and is enabled or used in my server config.


It may happen that mod_rewrite is treating URLs are all lowercase because of
Windows FAT32 file system. 
Scripts should always get the correct case URL input, because if not, some
specific scripts will fail.

Best regards,
Webmaster33

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to