I’m not sure if this is the same problem, but I’m trying to edit the htaccess file so that users are redirected to the home page if they try to access a file that does not exist. I tried adding the following line at the the top of the htaccess file, above the other directives, but it didn’t work:
ErrorDocument 404 http://www.mydomain.com/