Z
Z
zooks2015-12-24 10:42:39
Search Engine Optimization
zooks, 2015-12-24 10:42:39

What protocol should be specified in robots.txt when switching to HTTPS?

Yandex, which, unfortunately, drags out the site mirror change for months,
writes that you need to specify the host directive in Robots.txt :
platon.ya.ru/replies.xml?item_no=2778

But says nothing about Sitemap . Is it worth changing the protocol in it to https until he changed the mirror?

User-agent: *
Disallow: 
Sitemap: http://example.com/sitemap.xml

User-agent: Yandex
Host: https://example.com
Sitemap: http://example.com/sitemap.xml

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Yanovsky, 2015-12-24
@zooks

And what is the point of specifying a sitemap using the usual protocol?
I believe that the link to the sitemap should be with https.

A
Andrey Vershinin, 2014-05-22
@another_dream

Good morning. The answer to your question is DATETIME. The rest, including partitioning, organize through logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question