[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Custom 401 Page inside protected site



>
> Hello all,
>
> I have read and read (Sun's KB, Google, users and developer's lists) the
> multiple ways of doing customer error pages. I have my script working for
> the 400,403,404, and 500 errors. However, I have a little problem with the
> 401 (Authentication Required) error code.
>
> I have a site where the password protected url is www.example.com/ (the
> site's root, this is a must and cannot be changed). I have all of the
> necessary scripts and pages for my custom error pages inside
> www.example.com/error/. The .htaccess file has a line for the 401 error:
> "ErrorDocument 401 /error/error.php?401"
>
> BUT because it is protected as well it will not display the appropriate
> page, instead the browser receives the following error:
> "Additionally, a 401
> Authorization Required error was encountered while trying to use an Error
> Document to handle the request"

Can't you put the error stuff in a users web dir???