Showing results for 
Search instead for 
Did you mean: 

ErrorDocument problems


ErrorDocument problems


I am using an .htaccess file to control access to my members area the code is here:

AuthType Basic
AuthName "Members Area"
AuthUserFile path/to/.htaccess
require valid-user
ErrorDocument 401 errordoc.html

The problem is that when the wrong password is entered the standard 401 error page comes up instead of the errordoc.html that I want to appear. The file is in the same folder as the .htaccess file.

Can anyone help?