@marcosf
14 years, 9 months ago
I just found another solution which seems to be a better solution than just removing this rule. I’m sure it’s in there for a reason…
I change this block:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . – [L]
to:
RewriteCond %{ENV:REDIRECT_STATUS} !^$ [OR]
Adding the top line, did the trick and presented a 404 error page (from Apache).
Cheers!
Hi,
I think I found tour support request at the MU forums. I just wanted to update the forum over here, too.
The suggested solution to return 400 errors and not 500 for non-existing directories is to search for:
in your .htaccess file and to comment it out:
#RewriteRule . – [L]
This solved the problem for me. But the question is, if this is breaking something else? It seems to work for me so far….