V
V
Vladimir Romantsov2017-01-02 01:22:04
Apache HTTP Server
Vladimir Romantsov, 2017-01-02 01:22:04

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

1 answer(s)
N
Neocaridina, 2017-01-02
@Neocaridina

Google something like

RewriteCond %{REQUEST_URI} /attacment/
RewriteRule .* - [F,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question