spyder
08-16-2005, 02:56 AM
i am trying to do this http://tools.dynamicdrive.com/password/ but cannot figure it out. right now, i have an .htaccess in my root which contains the following
ErrorDocument 404 http://willie.envisionssoftware.com/web/home1.html
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /pages/protect/.htpasswd
AuthGroupFile /dev/null
require valid-user
then i have a .htpasswrd which is located from the root at pages/protect/.htpasswrd in the folder protect, i have a html document named test, and the .htpasswrd which contains
user:2mfVm7JMw2ZB6
on my home page which is located in pages/home.html i have a link which is to protect/test.html when you click on this link, it takes you to the page without makeing you put in a user name or password.
1 thing i did notice is that both htaccess, and htpasswrd are .txt files.
thank you in advance.
p.s. can you have multiple .htaccesses?
ErrorDocument 404 http://willie.envisionssoftware.com/web/home1.html
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /pages/protect/.htpasswd
AuthGroupFile /dev/null
require valid-user
then i have a .htpasswrd which is located from the root at pages/protect/.htpasswrd in the folder protect, i have a html document named test, and the .htpasswrd which contains
user:2mfVm7JMw2ZB6
on my home page which is located in pages/home.html i have a link which is to protect/test.html when you click on this link, it takes you to the page without makeing you put in a user name or password.
1 thing i did notice is that both htaccess, and htpasswrd are .txt files.
thank you in advance.
p.s. can you have multiple .htaccesses?