0

Im trying to secure my wordpress site behind htaccess but seem to be getting a fail.

HTML

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile www.sample.com/.htpasswd
Require valid-user

Any ideas?

Rob
  • 1,493
  • 5
  • 30
  • 58

1 Answers1

0

The AuthUserFile value is always specific to your hosting configuration. If you don't know what the value should be, do a phpinfo() and find the DOCUMENT_ROOT value.

It should be sth like that:

AuthUserFile /home/YOUR_NAME_ETC/.htpasswd

Rafff
  • 1,510
  • 3
  • 19
  • 38