title: Apache Web Server - How to return 404 error instead of 403
body: <p>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. </p>
  
  <p><strong>For example, These are the few that did not change:</strong></p>
  
  <p>www.example.com/icons/</p>
  
  <p>www.example.com/icons/small/</p>
  
  <p>www.example.com/cgi-bin/</p>
  
  <p>www.example.com/~ftp/</p>
  
  <p>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.</p>