|
The only glaring problem I can see, is that you are trying to load a protected file (your custom error document, as it is part of the protected site), when login fails.
Which wouldn't work, because if you can't log in, obviously you can't see a protected page...
Possible solution? Remove protection from the main folder, and move everything you want to protect to a subfolder, and protect that. You can have an index.html in your root, redirecting to the protected folder (or change the main page of your site in .htaccess to point to index.html in the protected folder)
Observation: Not a good idea to put .htpasswd in your root. I would put it in /web/sites/10/phem2004/secure/.htpasswd
|