S
S
Sergey Nizhny Novgorod2017-06-26 12:35:17
Yandex
Sergey Nizhny Novgorod, 2017-06-26 12:35:17

Why Yandex swears at the site's work file?

Hello.
Error in webmaster panel:
Inconsistent Host
directive was specified in the robots.txt file The Host directive specified a domain where there are no similar instructions in the robots.txt file. In order for the instructions of the Host directive to be taken into account, identical directives must be present in the robots.txt files of all site mirrors.
The site itself works via https - the redirect from http to https is configured via nginx.

User-agent: *
Allow: /
Disallow: /profile
Disallow: /auth
Disallow: /forum_new_topic

Host: site.ru

How to fix the error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2017-06-26
@alexey-m-ukolov

Host: https://site.ru
Since there is a redirect, there is no robots.txt on site.ru at all, and it swears at this.

F
Fedor, 2017-06-26
@purplesky

You answered your own question)
add https and everything will be ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question