My 404 .htaccess works very well when I put a wrong extension at it in place of .php.
Unfortunately the 404 does not work when I put a wrong name with .php.
This is my .htaccess code:
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Options -Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\..* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]
ErrorDocument 404 /404/notfound.html
order deny,allow
.php? – zerkms Aug 9 '11 at 23:07.htaccesslooks fine and works well for me. Seems like it is some specific webserver option specified on that server – zerkms Aug 9 '11 at 23:30