I am having difficulties in solving authentication for a specific HTML file.
I have tried using the Dreamhost config:
I have created an encrypted pw inside .htpasswd and that file is living inside /home.net/bio/me/.htpasswd
The file I am trying to ask for authentication u/pw lives inside /home.net/bio/me/me.html
With the Dreamhost suggestion, I do not see how I am calling for that specific HTML file inside that folder, if I am only coding
This did not work.
Then I tried the same .htpasswd and create a .htaccess file from scratch with this code:
SetEnvIf Request_URI "(/home.net/bio/me/me.html)$" allow
Allow from env=allow
But it did not work either. So I was trying to see if it was a permissions issue, as the dialogue box sometimes pops up, but once one insert the correct u+pw, it launches a a 500 Internal Server Error page. I tried permissions 0644 for .htaccess and 0640 for .htpasswd and the folder /home.net/bio/me as it is a directory-type with 0711. It did not work even with other permission codes.
Inside this folder lives a txt and png file, that I want to give the public access after they authenticate themselves at /home.net/bio/me/me.html. This page, me.html as 2 hyperlinks for those files.
Could someone give me a hand here, please? That would be much appreciated.