php - How do you modify the apache 403 error displayed when a directory is forbidden
Say you deny access to certain folders or files and you want to serve your custom error messages instead of something like this
You don't have permission to access /classes/classname.php on this server.
Apache/2.2.22 (Ubuntu) Server at webdev Port 8080.
Look into Apache configuration - specifically,
You'll add a line to your
.htaccessfile that looks like this: