Answer the question
In order to leave comments, you need to log in
How to write a ban on access to a folder in .htaccess?
The question is as follows. How to write in htaccess prohibition of access via direct link to folders with the name attachment, which in turn lie in other folders with an arbitrary name. It's just not an option to prescribe your own .htaccess in each 'attachment' folder ... Maybe someone faced a similar issue?
Answer the question
In order to leave comments, you need to log in
Google something like
RewriteCond %{REQUEST_URI} /attacment/
RewriteRule .* - [F,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question