I would like to set a .htpasswd on a folder within my templates directory. Here is what I did:
..create the .htpasswd file and place in directory above my public folder ..create a .htaccess file that points to the .htpassword file, and place it in the folder I want to protect, which is in my templates directory.
When I enter a url to access the page, it displays the page fine, but does not trigger the .htpasswd. If I move the folder to my root directory, everything works fine.
Why does this not work as a Craft template?