Skip to content
All articles

How do you migrate a website without losing SEO?

guide // , 5 min read, by Darthwares

Migrating a website involves moving its content to new URLs, which can impact how search engines find and rank your pages. To minimize negative effects on your Google Search results during a site migration, careful planning and execution are essential. This process focuses on ensuring search engines understand the change and transfer any accumulated value to your new site. By following established guidelines, you can help maintain your site's visibility.

A diagram showing old website URLs pointing with arrows to new website URLs, with a small icon representing a search engine crawler following the redirects.
On this page // 5 sections
  1. 01Why are permanent redirects crucial for SEO during a migration?
  2. 02How do you prepare for a site migration?
  3. 03When should you use Google's Change of Address tool?
  4. 04How do you ensure pages are crawlable and indexed after migration?
  5. 05Common questions

The short version

  • Plan your website migration by changing one element at a time and mapping all old URLs to their new destinations.
  • Implement server-side 301 permanent redirects from every old URL to its corresponding new URL.
  • Use Google Search Console's Change of Address tool if you are changing domain names or subdomains.
  • Remove any temporary noindex tags or robots.txt blocks once the migration is complete.
  • Monitor your site to ensure search engines can crawl and index your new pages effectively.

Why are permanent redirects crucial for SEO during a migration?

Permanent redirects are fundamental for maintaining search engine optimization (SEO) during a website migration. Mozilla documents that an HTTP 301 Moved Permanently status code indicates a resource has been permanently relocated to a new URL. When a browser receives this status, it automatically directs the user to the new page.

Crucially, search engines interpret a 301 redirect as a signal to transfer the SEO ranking from the original URL to the new, redirected resource. Google states that 301 and other permanent redirects do not cause a loss in PageRank, which is a system for ranking web pages.

Google recommends implementing server-side permanent redirects from your old URLs to your new ones, based on a clear mapping you provide. This mapping is vital: it's important to connect every old site URL to its corresponding new URL.

While 301 redirects are generally suitable, Mozilla notes that if a user agent receives a 301 in response to a POST request, it might change the request method to GET for the subsequent redirection. To prevent user agents from altering the request method, you can use a 308 Permanent Redirect instead, as altering the method after a 308 response is prohibited.

How do you prepare for a site migration?

Careful preparation is key to a smooth website migration that minimizes negative impact on search results. Google advises against making all changes simultaneously. Instead, plan your site changes one after another.

If your site is complex, Google suggests splitting the migration into smaller, manageable steps. This approach helps isolate potential issues and makes troubleshooting easier.

A critical preparatory step is to create a comprehensive map of your old site's URLs to the new site's URLs. This mapping ensures that every page has a clear destination and that no content is lost or becomes inaccessible to users and search engines. For example, old-site.example.com/page-a should map directly to new-site.example.com/page-a.

When should you use Google's Change of Address tool?

Google provides a specific tool within Search Console to help manage certain types of website migrations. This Change of Address tool is designed to help you change the URLs of existing pages while minimizing negative impact on your Google Search results.

You should submit a Change of Address in Search Console for your old site if you are changing domain names or subdomains. This action signals to Google that your site has moved, helping them update their index more efficiently.

How do you ensure pages are crawlable and indexed after migration?

After a website migration, it is crucial to ensure that search engines can access and index your new pages. Google advises that you remove any noindex rules or robots.txt blocks that were only needed during the migration phase.

Google Search Central explains that noindex is a rule set using either a <meta> tag or an HTTP response header, intended to prevent indexing by search engines that support it. When Googlebot crawls a page with a noindex tag or header, Google will remove that page entirely from its search results. You can implement this by adding <meta name="robots" content="noindex"> to the <head> section of a page or by returning an X-Robots-Tag HTTP header with a value of noindex or none.

For the noindex rule to be effective, the page must not be blocked by a robots.txt file and must be otherwise accessible to the crawler. If a page is blocked by robots.txt or inaccessible, the crawler will never see the noindex rule. In such cases, the page could still appear in search results, especially if other pages link to it.

If a page continues to appear in search results after you've added a noindex rule, it might be because Google has not yet recrawled the page since the rule was added. Another reason could be that the robots.txt file is blocking the URL from Google's web crawlers, preventing them from discovering the tag. Therefore, removing these blocks post-migration is essential for your new pages to be indexed.

Common questions

What is a 301 redirect?

A 301 Moved Permanently HTTP status code indicates that a requested resource has been permanently moved to a new URL. Browsers automatically redirect users to the new page, and search engines transfer SEO ranking from the old URL to the new one.

Does a 301 redirect cause a loss in PageRank?

No, Google states that 301 and other permanent redirects do not cause a loss in PageRank. This means the SEO value accumulated by your old pages can be passed to their new locations.

Why is URL mapping important for a website migration?

It is important to map your old site's URLs to the URLs for the new site to ensure that every page has a clear, permanent redirect destination. This helps search engines understand the move and transfer ranking signals correctly.

When should I remove noindex or robots.txt blocks after a migration?

You should remove any noindex rules or robots.txt blocks that were only needed during the migration phase as soon as the migration is complete. This ensures that search engines can crawl and index your new pages.

What happens if a page with a noindex tag is blocked by robots.txt?

If a page with a noindex rule is blocked by robots.txt, search engine crawlers cannot access the page to see the noindex rule. In this scenario, the page might still appear in search results, especially if other pages link to it.

Primary sources and further reading

This article was researched and written by an AI model and published automatically. It was written from sentences that were checked to appear on the pages below, but a person has not reviewed the text. If something is wrong, tell us at chibivikramathithan@darthwares.com and we will correct it.