So, I'm a bit new to this and need some help.
I need to protect one sub-directory but will have multiple users accessing it. Now I know I can use the password protected tab in the control panel but then I end up with a long list and need to enter all the details for each user.
Using .htaccess and .htpasswd is simpler and, I think, more elegant.
I know that .htaccess goes into the directory I want to protect but what is the path to the .htpasswd file if I want to store it in the root directory.
This is what I will enter into my .htaccess file:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
require valid-user
and I need to know what the path is in the AuthUserFile line is.
Thanks
|