R
R
robotstxt2017-01-05 15:12:32
robots.txt
robotstxt, 2017-01-05 15:12:32

Correct transition from http to https?

Now many are moving to https, but how to do this without leaving Yandex?
1. Indication of the directive in robots.txt "Host: https://site.ru "
2. In .htaccess we put 301 redirect from http to https
But what about access to the robots.txt file at http;//site.ru /robots.txt ?
Do I need to redirect it to https or make an exception for the Yandex robot and leave it to http?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
robotstxt, 2017-01-05
@robotstxt

Googled Plato's answer - https://yandex.ru/blog/platon/2778
In short, you need to be available via http and https at the same time for several months, otherwise everything will be sad.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question