I am trying to set up a custom 401 error doc and am having a problem with it. I have a password protected folder using .htaccess which works fine. If I type in the correct username and password it logs me in successfully. Ive added the following to the .htaccess file in my websites main folder: ErrorDocument 401 /401.html This is where my problem begins.... if I type in the wrong credentials I am repeatedly prompted to enter username/pass and am NOT redirected to my custom 401 error page however if I hit the "cancel" button instead of typing in a username and password then i AM redirected to my custom 401 page. My question is: why when entering the wrong username and password am I being repeatedly prompted over and over again for a username/pass instead of being redirected? Only upon hitting "cancel" does it send me to the error page. Entering in the correct username/pass works and logs me in so I know the .htaccess/.htpasswd are working Any help would be appreciated.