I have been working on protecting a page of contact information for two days now and have resorted to pulling hair. The page I want to protect will prompt with the userid and password but it never recognizes my id and passwords?
I have the .htpasswd loaded above the public_html and the .htaccess in the web folder with the protected file. I uesd this generator to create the password:
http://cobalt.golden.net/generator/index.cgi
.htpasswd file:
member:81A3Q3.h7xK3s
member:34ue2R53d8ylw
.htaccess file:
<FilesMatch contacts.htm>
AuthName "Restricted File"
AuthType Basic
AuthUserFile /user/home/www/directory/.htpasswd
require valid-user
</FilesMatch>
The name of the file I am protecting is contacts.htm. Is the "Restricted File" text supposed to be changed or is that part of the code?
|