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?
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?
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