Passwords for Sub Folders

Do you want to be able to set passwords for sub folders from one master .htaccess file . This is not as easy as it seems.

http://stackoverflow.com/questions/13157312/different-htpasswd-for-subfolder

stackoverflow.com/questions/13157312/different-htpasswd-for-...

The root folder of a web app is protected with a .htaccess/.htpasswd file. That works fine even with sub-folders, and everything is perfect.

Now I have to password protect a subfolder using a different .htpasswd file. I tried using a new .htacc ...

Visited90
http://stackoverflow.com/questions/5229656/password-protecting-a-directory-and-all-of-its-subfolders-using-htaccess

stackoverflow.com/questions/5229656/password-protecting-a-di...

I am trying to password protect a subdomain and all of it's subdirectories and files, but my knowledge on the matter is very limited, how can I go about doing that?

Visited101