Why not create a custom error page?
deny from all ErrorDocument 403 /error/404.html
The server always wants to reset error 403 if someone is not allowed to view the page and what you are trying to do. However, you can change the ErrorDocument for error 403 to show an HTML page that says error 404.
In my example, there is a folder in the root directory with the name error
and an html file with the name 404.html
.
source share