I want to use htaccess/htpasswd on only one directory and any sub-directories inside that one and on.
html/authpages/(bunch of additional directories)
I want to allow anyone to reach html but I only want to allow authenticated https connections into the authpages directory and all sub-directories.
I have been searching the net for the solution but so far, I can only put the htaccess file at the root of the web site and protect the entire site whereas I want to protect only certain subdirectories so thought I would need an htaccess file in which ever subdirs I would want to protect?
I have my .htpasswd file above html/
I have my .htaccess in the html/.htaccess
The above protects the entire site.
Now, I only want to protect
so I put my .htaccess file in there, still pointing to the same .htpasswd file and that doesn't seem to work.