recently I set up custom-made error documents for my server.
I started with a 404 page and this works like a charm: file not found automatically shows the specified 404.php page. However, with 403 I have some trouble. I set it up the same way, but I only get a blank page. It does not show the 403.php page as set in the .htaccess document. Any ideas?
Here is my code:
.htaccess:
Options -Indexes
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
php:
<?php
header("HTTP/1.1 403 Unauthorized");
exit;
?>
403.php
(and needlessly wondered why he was sending the status code again). – Interknit