How can you transfer search rankings from a staging site to a production site? Start with URL mapping and 301 redirects

ProcrustesPR

If a staging site has been indexed by search engines but the production site cannot be found, one approach is to set up 301 permanent redirects from staging URLs to their corresponding production pages, rather than simply copying the same HTML. Advice in public discussions suggests that this can guide users and search engines to the new URLs, allowing search engines to gradually associate the old and new URLs and update search results. However, this does not mean rankings will transfer immediately or remain unchanged, and there is insufficient evidence to promise how long the process will take.

ProcrustesPRProcrustesPRHow can I tell whether an SEO tactic breaks spam rules?

Identical HTML does not explain why search results differ

In the original case, the staging site had inadvertently been made public for historical reasons, and it ranked well for some keywords. Although the production site generated exactly the same HTML, the person asking the question said they could not find it using the same keywords. This is an individual case; that difference alone does not establish that the production site was penalized for duplicate content.

In another discussion, the questioner’s staging site was roughly two weeks old, and its new content had already appeared in Google search results. They worried that publishing the content on the company’s production site would prevent that site from ranking. This was a concern, not a confirmed outcome. The first step in handling the migration should be to identify which new URL each old URL should redirect to, rather than assume the content must be rewritten.

301 redirects should point to corresponding pages, not just another domain

An answer on Webmasters Stack Exchange recommends using 301 redirects to send users and search engines from the staging site to the corresponding pages on the new site. The key is to give each original page a clear new destination. For example, the staging site’s “/abc.php?id=10” should map to the production URL that will serve the same content.

  • Map the staging site’s existing URLs to their destination URLs on the production site.
  • Configure 301 redirects according to that mapping; do not just check whether the homepage redirects.
  • Use the old sitemap, a crawl list of the old site, or the redirect configuration to verify that each old URL reaches its intended new page.

Once redirects work, check the production site’s responses

An audit article published by Semrush in 2021 notes that server configurations may differ between staging and production domains, so page status codes should be checked again after migration. A page that works correctly on the staging site may not work correctly on the production site.

  • Production pages that serve content normally should return 200.
  • Pages that do not exist should return 404.
  • Check separately that the old URL returns a 301 and that the destination page responds correctly; do not rely solely on whether the browser ultimately displays a page.

Check more than the site’s appearance

Advice on WarriorForum also recommends checking that all pages and their on-page optimizations have been carried over from the development environment to the production site. If the site has large amounts of dynamic content, pay particular attention to whether any databases or tables were left out during migration.

Even if the HTML matches on the pages you have spot-checked, you should still verify that the other pages and content are complete. These checks can confirm whether the migration was completed as planned, but having 301 redirects in place does not guarantee how much of the site’s original keyword rankings it will retain.

ProcrustesPRProcrustesPRShould I rewrite or update an old article that does not rank?

Migrating from a staging site to a production site: perspectives from across the web

Besides setting up 301 redirects, do you also need to submit a change of address to Google?

This older discussion alone does not establish whether you must submit a change of address to Google today. It recommended verifying both domains in what was then called Google Webmaster Tools and initiating a change of address before setting up redirects. However, it does not explain the feature's current eligibility criteria or procedures. A change of address also cannot replace redirects to corresponding pages.

If the staging site ranked but the production site cannot be found, is Google Sandbox the cause?

Differences in search performance between the staging and production sites alone do not establish that Google Sandbox is the cause. In another discussion, a participant cited “Google Sandbox” to explain why a new site briefly appeared in search results. However, that was an individual's claim, and the available material contains no direct evidence confirming the mechanism or showing that it applies to this case.

ProcrustesPRWill Reposting Social Content on My Website Cause a Duplicate-Content Penalty?

References

  1. wrong SEO result for staging websitewebmasters.stackexchange.com — Discusses: Besides setting up 301 redirects, do you also need to submit a change of address to Google?
  2. About duplicated content and test website? SEO problemwww.warriorforum.com — Source used in the article above.
  3. 8 Steps to Perform a Technical SEO Audit for a Client’s Blogwww.semrush.com · 2021-11-22T10:50:00Z — Source used in the article above.
  4. wrong SEO result for staging websitewebmasters.stackexchange.com — Source used in the article above.
  5. How You Can Avoid an SEO Disaster During Your Website Redesignwww.warriorforum.com — Source used in the article above.
  6. wrong SEO result for staging websitewebmasters.stackexchange.com — Discusses: If the staging site ranked but the production site cannot be found, is Google Sandbox the cause?
  7. About duplicated content and test website? SEO problemwww.warriorforum.com — Discusses: If the staging site ranked but the production site cannot be found, is Google Sandbox the cause?

Related articles

How can I tell whether an SEO tactic breaks spam rules?Should I rewrite or update an old article that does not rank?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?What types of URLs are there, and what are they used for?What are the common mistakes, limitations, and costs of using subdomains?Can two URLs point to the same website?How to improve on-site content and structure: audit pages first, then address content gaps and internal linksHow can you use multiple domains to build content and traffic while assessing the risks?
ProcrustesPR
ProcrustesPR