I have Apache multiviews enabled on my site but it's causing an unexpected behaviour.
my site www.example.com has an images folder like www.example.com/imgs/ where I store all images
so if I have www.example.com/imgs/pic1.jpg there and I try to access it, it's all fine and it shows the image on my browser.
Now if I go ahead and delete pic1.jpg from the imgs folder, and try to access www.example.com/imgs/pic1.jpg again, I was expecting a 404 but somehow I get served the page www.example.com/index.php (although css styling is lost). It's not a redirect, the URL in the address bar still shows www.example.com/imgs/pic1.jpg but loads the script at www.example.com/index.php
I suspect it's something related to multiviews, my htaccess has only the multiviews option. So how can I fix this? And why apache+multiviews would serve the site's index.php script one folder above?
Thanks
Just to mention that a request to www.example.com/script corretly loads www.example.com/script.php
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress