Moving a site to a new domain name
Moving a site to a new domain essentially means grouping together the old and the new website addresses.
For the new address to be included in the search results, the robot must define it as the main mirror of the old domain. This will also allow you to transfer some accumulated metrics from the old site to the new one. For example, external links of the old site are treated as external links of the new one. At the same time, on the External links page in Yandex Webmaster, you can see URLs specified on a third-party site.
Alert
When you change the main mirror, Yandex doesn't guarantee that the number of site pages in search results, the page ranking, or traffic will remain the same.
Step 1. Add your old and new sites to Yandex Webmaster
Add your old and new sites to Yandex Webmaster and verify your rights to manage them. For more information, see Quick start.
Step 2. Check if the sites' content matches and they are available to the robot
Make sure that:
-
The new address is not grouped with someone else’s site. If so, separate the sites. Separating sites is not necessary if:
- The grouped sites differ only in protocol (HTTP/HTTPS).
- The site URLs differ only in the "www" prefix.
- The new URL is recognized as a secondary mirror of the site you are moving from.
-
The old and new URLs are available to the robot:
-
The server response takes less than 10 seconds and contains an HTTP status with the 200 OK code for the new URL and 200 OK or a redirection code (permanent or temporary) for the old URL.
-
In the robots.txt files, the old and new domain are allowed for indexing by the Yandex robot. The robots.txt files must have the same content so the robot can use the same URLs for checking mirrors.
You can also configure a redirect from the old site's
robots.txt
to therobots.txt
of the new one. Then Yandex will use the target file. In this case, make sure that the directives in thisrobots.txt
are correct for both sites.
-
Step 3. Set redirection from the old URL to the new one
On your sever, set up a redirect with the 301 or 302 HTTP code from the old website's pages to the corresponding pages on the new website, which should be included in the search.
If the site's domain name and directory names have changed, you need to install a double redirect. For example, the page URL http://site.ru/page/
changed to http://example.ru/page/
. The redirect should work like this:
http://site.ru/page/ -> http://example.ru/page/ -> http://example.ru/page/
Make sure the redirect is set:
- From the home page of the old site to the home page of the new one. This is necessary for a proper site move.
- From the internal pages of the old site to the corresponding pages of the new one. This will transfer metrics to the new pages and help site visitors find the information they need.
If possible, don't set a redirect from all pages of the old site to the main page of the new one. Such redirects are inconvenient for users and, consequently, slow down the new site indexing by the Yandex robot.
Note
If there are more than two sites in the group, make sure that all of them have a redirect to the site that should become the main address.
In some cases the robot treats this meta tag as a redirect with HTTP code 302. Use the meta tag for moving if other redirection methods don't suit you.
Step 4. Use the "Relocate site" tool»
The indexing bot will learn about the main address the next time it crawls the site. To speed up detection of changes, use the Relocate site tool:
- Go to Yandex Webmaster and choose the website you want to move from.
- If you are moving to a new domain or another domain zone, go to Indexing → Relocate site and enter the new address in the field or select it from the list.
- Click Save.
The change in the main site address takes several weeks. To receive notifications about the change in the main site address, subscribe to notifications.
After the main site address is changed, the new URL is included in the search.
Questions and answers
There is no “Relocate site” page in Yandex Webmaster
You can relocate the site that is currently the main mirror. You can check the main site address in the My Sites list in Yandex Webmaster. If the site is grouped with another and is its secondary mirror, separate them. In this case, Yandex Webmaster displays Separating mirrors instead of Site move. Then change the main site address according to the instructions above.
I followed the instructions and specified the main site address in Yandex Webmaster, but the secondary mirror is still present in the search. Why?
It will be in the search until the corresponding pages of the primary mirror are not indexed, even if you set a redirect. Then, the pages will be excluded from search results after several updates of the search databases.
Secondary mirror pages may still be stored in the indexing bot's database and displayed in Yandex Webmaster, but not in search results.
To keep track of search database updates, subscribe to notifications.
After changing the domain, the number of pages or their ranking decreased
If a new domain is already recognized as the main mirror, the number of site pages in the search results, their ranking or traffic can change. These changes can be seen over several search database updates.
See the recommendations in Site structure.
- In the source code of the site that should become the main mirror contains the attribute rel="canonical". Delete it and submit the request for moving again.
- The site is unavailable or responds with a long delay.
- The sites' content doesn't match. Check if the internal page URLs and headers match.
- The site moves to another domain zone without a redirect.
- Site indexing is prohibited in the robots.txt file.
- Violations of the Search rules are detected on the site. View the details on the Security and violations page in Yandex Webmaster and fix the errors. In two weeks, check that the message about the violation disappears from Yandex Webmaster, and re-send the request.
- The request was sent from the site to move to.
- Internal service error. Try sending the request later.
Request was sent by mistake
Select what the mistake in the request was:
The wrong site was selected for moving
If you selected the wrong site from the list on the Indexing → Relocate site page in Yandex Webmaster and submitted the request, it will be rejected after some time, and the site won't be moved.
You changed your mind and don't want to move the site, but the request is already sent
In this case, the request may be processed, and the sites will be merged into a group. You won’t be able to cancel the request. Wait for the changes to be applied in the search results and then move to the domain you need.
Why does the request take so long to process?
The site move request is fulfilled when the new site URL becomes the main mirror and is included in search results. This can take from a few weeks to months, depending on the relocation type, the speed at which the robot crawls the sites and the mirror updates in the search results.
Check whether the following conditions are met:
- Both sites are available to the robot.
- The old site address performs a redirect with a 301 or 302 HTTP code to the new one, which will be considered the main address.
- The site move request in Yandex Webmaster has been processed.
If all conditions are met, the data will be updated automatically over time.
Learn more
A link located on another site.