Answer the question
In order to leave comments, you need to log in
How to fix loopback redirect in .htaccess?
I can't figure out how to correctly configure bots to redirect by user-agent to a specific page in the .htaccess file.
Here is the code:
RewriteCond %{HTTP_USER_AGENT} yandex [NC,OR]
RewriteCond %{HTTP_USER_AGENT} mozilla [NC,OR]
RewriteCond %{HTTP_USER_AGENT} chrome [NC,OR]
RewriteCond %{HTTP_USER_AGENT} google [NC]
RewriteRule ^(.*)$ https://mysite.ru/target/
Answer the question
In order to leave comments, you need to log in
Have you tried adding the L flag?RewriteRule ^(.*)$ https://mysite.ru/target/ [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question