I am currently working with an apache .htaccess file. My previous directories were configured to return 403 error. I am now suppose to return 404 error instead of 403(for security purposes). Having no clue of how to do it, I simply replaced all the 403 to 404 in the configuration This is where I arrived to my problem. Out of 50 directories, only a few of them did not change.
For example, These are the few that did not change:
www.example.com/icons/
www.example.com/icons/small/
www.example.com/cgi-bin/
www.example.com/~ftp/
I tried looking up online, did research and try and error for hours. I've tried things like ErrorDocument 404, adding RedirectMatch 404 to the configuration in htaccess and nothing worked for me. Any advice or little form of help? Thank you very much for replying in advance! Any would be appreciated.