i want when a person tries to view a directory they get a 401 Unauthorized so i do this
Code: Select all
<?
header("HTTP/1.0 401 Unauthorized");
?>
and i save it as index.php of course. sadly it just displays a blank page and not the awesome 401 page. this is probably becuase of some server config but i don't know how to set that up.