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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -