TCH-Thomas Posted May 9, 2004 Posted May 9, 2004 Not sure if this is correct place... Been thinking that the normal Authorization required page is so boring. Is it possible to change it and then add something similar in .htaccess to what i did when i made my custom 404-page? 404-page ErrorDocument 404 Http://www.marve.se/error404.html For Authorization required, would that be ErrorDocument 401 Http://www.marve.se/error401.html Am i correct or completely...? Quote
TCH-Thomas Posted May 9, 2004 Author Posted May 9, 2004 Havent tried it yet, but thanks in advance. Got a little happy so i forgot to say it. Sorry. Quote
LisaJill Posted May 10, 2004 Posted May 10, 2004 Try like this, it works on my site; >ErrorDocument 401 /error401.html That *should* do it... =) Quote
DarqFlare Posted May 10, 2004 Posted May 10, 2004 Yeah, it works for me.. Odd.. Let us know if Lisa's works. If not, then you may want to put in a support ticket. Quote
TCH-Thomas Posted May 11, 2004 Author Posted May 11, 2004 So far i have tried: ErrorDocument 401 Http://www.marve.se/error401.html ErrorDocument 401 Http://www.marve.se/staff/error401.html ErrorDocument 401 Http://staff.marve.se/error401.html ErrorDocument 401 /error401.html ErrorDocument 401 /error401.shtml None of them works. Guess its time for the trouble ticket. Thanks everyone involved though Quote
TCH-Bruce Posted May 11, 2004 Posted May 11, 2004 (edited) Thomas, have you tried naming the file 401.shtml and placing it in the folder you want protected. Also you don't need to add anything to the .htaccess file for this to work. Also the document must be at least 512 bytes. Edited May 11, 2004 by TCH-Bruce Quote
TCH-Thomas Posted May 11, 2004 Author Posted May 11, 2004 Thomas, have you tried naming the file 401.shtml and placing it in the folder you want protected. Also you don't need to add anything to the .htaccess file for this to work. Also the document must be at least 512 bytes. Will check that. Ive tried so many things now i dont remeber if it was placed in the staff folder i want protected. Back later Quote
TCH-Thomas Posted May 11, 2004 Author Posted May 11, 2004 I have now gotten marve.se/staff to show what i want but not as a subdomain staff.marve.se Can this be done? Or will just the subfolder way work? Quote
TCH-Thomas Posted May 11, 2004 Author Posted May 11, 2004 I just put a error401.html in public_html (no subfolder) and that ErrorDocument 401 /error401.html in .htaccess and poof it started to work. Not sure what i did. But still have the problem to have it show up when going to staff.marve.se and not marve.se/staff. Quote
TCH-Bruce Posted May 11, 2004 Posted May 11, 2004 Put a copy of error401.html in the sub folder as well. I had to do this to make it work with a 404 error doc. Quote
TCH-Thomas Posted May 11, 2004 Author Posted May 11, 2004 Will i need to put a ErrorDocument 401 /error401.html in subdomain "staff" .htaccess too? Quote
TCH-Bruce Posted May 11, 2004 Posted May 11, 2004 (edited) No, you shouldn't. Just a copy of the document. Well, let me rephrase that. I create the files with .shtml extensions and I don't need them. You on the other hand are using the .html extension which must be redirected. Try it without a .htaccess file and see what happens. Then if that doesn't work either create a .htaccess file in that folder and add your redirect or rename the file 410.shtml. Edited May 11, 2004 by TCH-Bruce Quote
ubergal Posted May 21, 2004 Posted May 21, 2004 I also get the Authorization Required page - when people try to log in to my members page with an invalid password. Here's what they see: < Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request. > I did make a new 401.shtml page, but you can only see what it says if you view source. What I would like to do now is redirect the attemped theives to another website, and keep that within the frames of my site. I tried doing a redirect of the 401 page, but it didn't seem to do anything at all. Any suggestions? übergal Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.