A
A
Aaang2020-05-18 14:02:00
Search Engine Optimization
Aaang, 2020-05-18 14:02:00

How to solve the problem of a site mirror in Yandex Webmaster?

Hello everyone, there was such a problem - for some reason www was added to the site domain. I removed this www by changing the site address in the WP settings. Now the site is without www in front of the domain, but in Yandex webmaster the site is divided into 2. One with www, the second without.
If you go to a domain without www, it says - You are viewing information about the secondary mirror of the site www.ryazan-sitename.ru The secondary
mirror is not displayed in Yandex search results. Therefore, Webmaster does not collect statistics on it and does not perform diagnostics.
Add a main mirror.

I received an email from Yandex -

Hello

Your site's main mirror has changed: from ryazan- to www.ryazan
Go to the My Sites page and check the changes:

Sites are displayed independently of each other. This means they were in a group of mirrors, and now they are glued.
If the sites differ only in the domain name, the reason for posting may be a difference in content or a change in the algorithm. Read the blog for details. To combine them again, check that www.ryazan-steelfasad.ru redirects to the main ryazan-. To speed up the merging, use the Site Move tool.
The root domain has changed in the list. This means that the main mirror has changed.
Check that the new master mirror is available for indexing and responds to the robot with a 200 OK code. To specify a different main mirror, set a redirect. To speed up the application of changes, use the Move Site tool.

Read more about displaying mirrors in the Help.



Sincerely, Yandex.Webmaster robots

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Velichko, 2020-05-18
@ReactorHeart

You need to set up a 301 redirect from "www.mysite.ru" (the main mirror) to "mysite.ru" on the hosting server.
And also check in the Yandex Webmaster settings (Indexing - Site Relocation), which site mirror is indicated as the Main one.
Where is it done:

  • A) on the site server in the web.config file (only available for Windows hosting)
  • B) in the .htaccess file (only on Linux and in the case of the hosting control panel, the consequence of ISPmanager)
  • C) when managing hosting through cPanel and Plesk panels, redirects from the WWW can be configured through these panels without editing files on the server

Check with the hoster in which file you need to set up a 301 redirect from WWW.

Usually, the hosting site has corresponding instructions for setting up a 301 redirect from the WWW in the FAQ section.
For option B) in .htaccess you need to write:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC]
RewriteRule ^(.*)$ site.ru/$1 [R=301,L]
where site.ru is your domain name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question