Thing I'm trying to figure out:

- I want to use .htaccess to block a subdirectory from being accessed. (Because of a reason, the .htaccess cannot go *in* the subdirectory.)

- Lots of SO replies suggest using <Directory "dirname"> with a deny from all.

- But this doesn't work. "<Directory not allowed here".

- Lots of SO posts also agree <Directory> and <Location> are not allowed in .htaccess.

- If it's not allowed it's not allowed. But why do so many people seem to *believe* it's allowed?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115662991124929217 on your instance and quote it. (Note that quoting is not supported in Mastodon.)