httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54733] New: 0 bytes file, assumed that it does not exists
Date Wed, 20 Mar 2013 17:47:27 GMT

            Bug ID: 54733
           Summary: 0 bytes file, assumed that it does not exists
           Product: Apache httpd-2
           Version: 2.2.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
    Classification: Unclassified

I have got .htaccess with the following rules:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

Which supposed to deliver the file contents when it exists physically, however
when the file is empty (0 bytes) it ignores the condition and assumes the file
does not exists, and executes the next rule (the last line).

The resulting behavior produces errors on my application.

Server Info:
Server version: Apache/2.2.22 (Ubuntu)
Server built:   Nov  8 2012 21:37:30

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