I am looking to send the 404 error code when users try to access forbidden directories. I have the 'deny from all' attched to all private directories, and the following errordocs on the main .htaccess file:
ErrorDocument 404 /404/ ErrorDocument 403 /404/
This sends users to the custom 404 page I have set up, but when I check the request headers, it's still sending a 403 error code. Can I pass a 404 error code through the .htaccess file on forbidden directories?
[Copied over from stackoverflow]