PDA

View Full Version : problem with .htaccess



Louis Cloutier
11-23-2007, 08:03 PM
Hi,

I want to protect a directory of my website. I try with .htacces but it does not work.

I made a .htaccess file with a and a .htpasswd file.

In the .htaccess file

AuthName "Section Name"
AuthType Basic
AuthUserFile /home/pafzonec/public_html/topsite/admin/.htpasswd
Require valid-user

and in .htpasswd
theuser:password

When I try to login it said
401 Authorization Required
Invalid login credentials!

Can someone help me?

Thanks

Louis Cloutier

Depeche
11-23-2007, 08:41 PM
Log on cPanel- Go to the catergory "Security" and click "Password Protected Areas" And it does it for you.

Louis Cloutier
11-23-2007, 08:49 PM
ok thank you very much

Louis Cloutier