Password protecting directory via .htaccess
I am using the following code in the .htaccess file:
AuthUserFile home/content/a/b/domain.com/directorya/.htpasswd
AuthGroupFile /dev/null
AuthName "Recent Issues Section"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
and the following code in the .htpasswd file:
stephen:garcia
Both .htaccess and .htpasswd files are placed in the directory that needs to be protected (i.e.,
home/content/a/b/domain.com/directorya) and the files are uploaded to the server in ASCII format.
I am currently using the unencrypted password, 'garcia' with user ID 'stephen'. (The intent is to have all users access the protected directory with stephen as ID and garcia as PW.)
When I try to access the protected directory, I get the Windows dialog box that asks for the ID and PW but when I provide the ID and PW, nothing happens and I am unable to access the contents of the protected directory. It appears as if .htaccess is not communicating with .htpasswd.
What am I missing?
|