cboakes
Member
Posted 2 years ago #
Hi there,
I was wondering if anyone is able to help me out with the following query:
I've successfully used a password protection script, to password protect an entire wordpress powered site. The code is fairly standard:
AuthName "Skillset Password"
AuthType Basic
AuthUserFile /myfilepath/.htpasswd
Require valid-user
This all works perfectly fine. However, I'm trying to make it limit certain username/password combinations to specific pages. Does anyone now how I can achieve this?
Any help would be greatly appreciated.
Thanks,
Chris
danromanchik
Member
Posted 1 year ago #
I would also like to do this, but can't seem to find any information on this. Can anyone point me in the right direction?
Thanks, Dan
karlevid
Member
Posted 1 year ago #
you need to make a .htpasswd file
use this for authentication generate the password, http://www.htaccesstools.com/htpasswd-generator/
my problem now it that i get the 500 Internal Server Error
I also have this problem. I have a valid htpasswd file and a valid htaccess which prevents /members/pdf/file.pdf
http://www.mysite.com/members/pdf/file.pdf correctly requires password and works.
However, I also want the same passwords to protect an article called members and other articles such as members/meetings etc
http://www.mysite.com/members and http://www.mysite.com/members/meetings display an error 500.
Any ideas anyone? A valid .htaccess would be ideal...