V
V
Vyacheslav2015-10-31 21:27:11
htaccess
Vyacheslav, 2015-10-31 21:27:11

How to remove access to folders with the same name?

There are folders named "not_visible" in different directories.
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^21\.14\.13\.70 my ip
RewriteRule ^not_visible/ [R=301,L] <- What is the rule to hide them from all IPs except mine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ShamblerR, 2015-11-02
@ShamblerR

<FilesMatch "/var/www/site.ru/not_visible$">
Allow from 21.14.13.70
</Files>

something like this? just correct the syntax there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question