I created a proper 401.shtml page and yet my server doesn't use it!

Tertsi

Verified User
Joined
Mar 2, 2007
Messages
39
http://www.freesexdoor.com/401.shtml
and http://members.freesexdoor.com/401.shtml
exist.

Yet when I try to login to members.freesexdoor.com, I get the default 401 error page on both FireFox and IE even though I cleared my caches.

I even tried adding this to my members.freesexdoor.com .htaccess file:
ErrorDocument 401 /401.html (after I re-named it to .html)
and I also tried: ErrorDocument 401 ../401.shtml

So how can I show a custom 401 error page when a user fails to login, regardless of where the user comes from?
 
http://members.freesexdoor.com/ is password protected right? So if the 401 page is in http://members.freesexdoor.com/ and the user fails to login, how is he supposed to see the 401 page since it is password protected?

The only way to see http://members.freesexdoor.com/401.shtml is to successfully login with the way you have it set up.

The only way to do what you want is to use the .htaccess to print a meta refresh to http://www.freesexdoor.com/401.shtml

ErrorDocument 401 "<meta http-equiv="refresh" content="0;url=http://www.freesexdoor.com/401.shtml">

Also I would not use the bold print anymore. Looks like you are being demanding. You don't have any right to demand anything from us.
 
Last edited:
Gentlemen, please be pleasant. I'd use bold only for emphasis of specific words; generally we don't have to emphasize our requests.

Thanks!

Jeff
 
Sorry, I only meant it to make it easier to read what part of the message you are supposed to read. I'm not used to forums where people read every word carefully. Thank you I'll try that.

EDIT: It doesn't work. It only displays a " after that (even if I unquote the statement or add <html><head> etc.)
 
Last edited:
I have edited my original post. In httpd.conf you have to backslash the quotes in the meta refresh but apparently you don't have to in .htaccess and also you leave off the trailing quote.

Correct code for .htaccess:

ErrorDocument 401 "<meta http-equiv="refresh" content="0;url=http://www.freesexdoor.com/401.shtml">
 
Back
Top