https://issues.apache.org/bugzilla/show_bug.cgi?id=54733

            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
          Assignee: [email protected]
          Reporter: [email protected]
    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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to