I have the following problem, I have users in my database with wordpress encrypted passwords. There are pdf files I do not want all of them to access so I am going to use htaccess and htpasswd files. The problem is when I copy their passwords to the htpasswd it does not work, what should I do? Do I just give them new passwords for the pdf files? How do I write my htpasswd file so that it can understand the wordpress encrypted passwords?
This is what I have and forgive me if I am doing it completely wrong, I am new programming:
AuthType Digest
AuthUserFile ........./www/.htpasswd
AuthName "Restricted"
<Files file1.pdf>Require user john </Files>
In the .htpasswd I have
John:$P$BiJ2okZmr880S2Ow.XBQkovjx4XCG00