I am running a Wordpress site with the following code in the .htaccess file
I have a folder named “share” that is in the root of the Wordpress install.
I use the share folder to store photo galleries for clients.
There are folder within the share folder for each year. 2009, 2010, 2011, and 2012.
Within the years folders are specific dates folders like 06-20-2009.
I want to password protect the folder 06-20-2009 using a .htaccess and .htpasswd file.
Whenever I add the .htaccess and .htpasswd file to the dated folder, then try to access the folder (www.example.com/share/2009/06-20-2009), it just redirects me to the main domain name (www.example.com).
Is there something I can add to the .htaccess file in the root folder so it doesn’t apply itself to the share folder or anything under it?