K
K
Kamil2021-07-22 13:30:20
htaccess
Kamil, 2021-07-22 13:30:20

Why is htaccess blocking Yandex bot (mirror)?

Hello. Please tell me, with such a condition, I'm trying to allow Yandex to walk around the site:

RewriteCond %{http_User_Agent} "!compatible; YandexBot| MirrorDetector"


At the same time, in the server log, this is how it is noted
141.8.142.7 - - [22/Jul/2021:13:19:30 +0300] "GET / HTTP/1.1" 403 265 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; MirrorDetector; +http://yandex.com/bots)"


And anyway, when the bot enters, he sees a 403 error, they say it is forbidden for him to go here.

How to write correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question