I am using .htaccess to password-protect a directory. When users attempt to log in, they enter a username and password, and are refused access --- but if they try a second time, they get in just fine (provided, of course, that the username and password are legitimate). I'd like them to succeed the first time.
I'm pretty sure this is being caused by the fact that there is another .htaccess file in a directory one level up.
The higher directory (call it "A") has a .htaccess that starts with
AuthName "Restricted Area"
The .htaccess in the directory I'm trying to protect looks like this:
AuthName "Password Required"
AuthUserFile [PATH TO .htpasswd HERE]
I tried changing the AuthName in directory B to match the AuthName in directory A, but this seems not to help. Is there an easy fix for this?