Apache Detects files as directories

Posted by Legit on Server Fault See other posts from Server Fault or by Legit
Published on 2012-06-16T04:39:51Z Indexed on 2012/06/16 9:18 UTC
Read the original article Hit count: 147

Filed under:
|
|
|

I have a file 'result.txt' in my documentroot, now when I access:

http://localhost/result/first

It's accessing this instead:

http://localhost/result.txt/first

What could have I incorrectly misconfigured in my apache config?

EDIT: My rewrite rules are as follow:

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

© Server Fault or respective owner

Related posts about apache2

Related posts about centos