
So, I have a site, let’s call it example.com
. But I have multiple levels of directories under it. I have directories like /example.com/repositories
and the actual repositories at the next level like so example.com/repositories/abcd
or example.com/repositories/efgh
.
Now, I only want access to example.com/repositories
restricted. Everyone should be able to access the root level i.e. example.com
and the nested subdirectories i.e. example.com/repositories/*
.