lucy24 - 9:00 pm on May 5, 2013 (gmt 0)
with each folder created, it puts a simple index.html with text only of "Not Allowed"
besides that the only filetype in any of the folders inc sub folders is .jpg
There speaks a CMS designer who has never thought of
Put it somewhere near the top of your main htaccess; it will be inherited everywhere unless you explicitly override it.
Since the directories contain nothing but images, all you need in your htaccess is the beginning of the path. Looks like simply
without closing anchor. Shove it into your existing rule.
Note that technically the opening anchor isn't necessary; I assume you don't have anything like www.example.com/directory/otherdir/gallery/upload/publicly-accessible-file.html lurking around elsewhere. But it makes the rule run more efficiently, because if "gallery/" isn't the very first thing in the request, the server stops looking right away.
Tip: You can use the browser's Back button to go back and look at the thread, and then Forward again and your in-progress post will still be there. Some forums won't let you do this; your unfinished post disappears. But it works here. Even works if you've had intervening Previews so there are multiple back-and-forths involved.