pkuk

Well-Known Member
Nov 16, 2002
65
0
156
Hi

I've got a customer with a passworded area of their site, this works fine, other than when you enter 3 wrong passwords, the browser returns the following message "Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request." the 401 file is present in both the directory which you initiate the link to the passworded area and also the new directory (which you can't access without the correct password). Any ideas why it's failing to read the 401.shtml file when it's clearly there?


Thanks in advance...
 

plake

Active Member
Apr 22, 2003
43
0
156
you know what, me thinks this has to do with the fact that their .htaccess file is sitting in the public_html folder, rather than a sub folder. Thus permissions for the 401.shtml are off limits, thus the default from apache.

perhaps the best solution is just to let the customer know of the limitations of the .htacess protocol and tell them to have a splash page with a redirect to a sub directory?
 

dlbelton

Registered
Jan 11, 2005
2
0
151
I have also tried it with the .htaccess file in a subdirectory in the public_html directory, with the 401 error file in a freely accessable area, with the same results.
 

plake

Active Member
Apr 22, 2003
43
0
156
odd, what I posted above it was I did for the sub... I told them to make a splash page in public_html that redirects to the secured sub folder... the 401.shtml resides in the public_html folder which is world accessable... and it works for them...