Forum Moderators: phranque

Message Too Old, No Replies

Small .htaccess dilemma

         

kgormat

8:30 am on Oct 31, 2002 (gmt 0)

10+ Year Member



I hope this is an appropriate forum for this type of question.

I have a small issue with the access denial message that is presented to a user that fails to enter the correct credentials to a .htaccess protected directory. Is there a way to override the page the user is directed to after the failure via .htaccess? Since they are not presented with a 404 per se, I'm at a bit of a loss.

dingman

1:38 pm on Oct 31, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ftp://ftp.isi.edu/in-notes/rfc2616.txt

You're right that it's not a 404. I think it's a 401.

So instead of setting a handler for 404s, you want one for 401s.

<aside>I'm sure someone around here posted a link to a nicely hyperlinked HTML version of the HTTP/1.1 spec a while ago, but I can't seem to find anything but a reference to the above text file at w3.org. Anyone know where to find that HTML version?</aside>