Home » Php » Send a 404 error via htaccess?

Send a 404 error via htaccess?

Posted by: admin September 25, 2018 Leave a comment

Questions:

I’d like to cut off access to a subdirectory on my site but I want any access in the subdirectory to be a 404 error, not a 403 forbidden. How can this be accomplished?

Answers: