37 ms·
Check the ErrorDocument directive for .htaccess files.
by TonyTrapp 6y ago
Check the ErrorDocument directive for .htaccess files.
- hnlmorg 6y agoThat directive doesn't have to reside in .htaccess files. It works just as well inside a Directory, Virtual Host and Server contexts as well. ErrorDocument 404 /404.php <Directory "/.git"> ErrorDocument 404 "Ah ah ah! You didn't say the magic word" </Directory> https://httpd.apache.org/docs/2.4/mod/core.html#errordocument https://httpd.apache.org/docs/2.4/mod/core.html#errordocumen...