I'm trying to add password protection to my personal website using
.htaccess. When I enter the username and password, I get asked again and again. How do I resolve this?
AuthUserFile /.htpasswd AuthGroupFile /dev/null AuthName "Enter Password" AuthType Basic require valid-user
Both files are in the root directory. This is the first website I'm building, so I'm no expert.
Edit: I used this tool to create my .htpasswd file.