cmcfarling
IS-IT--Management
I copied this question from experts-exchange.com because I couldn't have asked it any better. Plus there was no definitive answer over there and I cant find one anywhere.
There is a password protected directory /pw. The ErrorDocument 401 is set to a php file in the root directory. If the php file just outputs some text everything works file. But if i put a redirect in the 401 php file:
<? header("Location: /login_error.php"); exit; ?>
The password box never gets displayed and instead the user gets directed straight to the /login_error.php page. Whats the problem here?
There is a password protected directory /pw. The ErrorDocument 401 is set to a php file in the root directory. If the php file just outputs some text everything works file. But if i put a redirect in the 401 php file:
<? header("Location: /login_error.php"); exit; ?>
The password box never gets displayed and instead the user gets directed straight to the /login_error.php page. Whats the problem here?