I have code with two files .htpasswd and as usual .htaccess
.htaccess has the following code:
# Directory Listing
Options +Indexes
AuthUserFile /home/domainname/public_html/.htpasswd
AuthName "Members Only"
AuthType Basic
# Access Restriction:
Require user Admin
order deny,allow
and
.htpasswd with values for passwords.
Admin:$password1
How to set correct code within those files to work protected areas on specific folders?
Seems some issue that public_html is all protected not inside this public_html