mod rewrite - Allow .htaccess to Subdirectory of a Blocked Directory -
Hi, how can I and I grant access to a directory called 'bDir' subdirectory of 'aDir'?
/ P>
In my .htaccess:
## get started - Security # Block all direct access to these foldersRarroituals ^ (ADR | Bin | Logs) / (. *) Error [L]. . In other words, 'BDIR' is in 'ADR' and I need web access.
You can use a negative lookhead:
## Get started - Security # Block all direct access to these folders RewriteRule ^ (adir (?! / Bdir) | bin | logs) / error [L, NC]
Comments
Post a Comment