It won’t work and I don’t know why.
I’ve tried for hours to get .htaccess and .htpassword to work for a specific part of my website.
Here’s the code for .htaccess
AuthType Basic AuthName "Welcome. Please Enter Your Password." AuthUserFile /public_html/assets/testprivate/.htpasswd Require valid-user
And here’s the code used for the .htpasswordfile
The password box appears but I don’t know why once it is entered the page doesn’t appear?
Can someone please help me. Is there also a way that I could make it so that only certain users can view the page?
Thanks in advance.