I have been trying to use the .htaccess file and .htpasswd file for password protecting my website, but the .htaccess login pops-up but is not reading the .htpasswd file. They are in the same directory. I have been typing the username and password correctly. so what could my problem be?
Here is the file:
Here is the file:
Code:
AuthUserFile ./.htpasswd
AuthName Test
AuthType Basic
require valid-user