Answer the question
In order to leave comments, you need to log in
Why does it transfer from the site to Yandex?
Friends. I just can’t understand what’s the matter..
There is a category on the site.. https://site.ru/gotovim-edu/
There is a condition in .htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)(?<!/)$ /$1/ [L,R=301]
Answer the question
In order to leave comments, you need to log in
Are you trying to redirect from addresses without a trailing slash to addresses with a slash?
Try to google ready-made examples. For example:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
You are thrown not to Yandex, but to a non-valid url, which your browser interprets as not valid and instead of going through it tries to find it in the default search, which you apparently have Yandex.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question