Stay organized with collections Save and categorize content based on your preferences.
How to move a siteThis document describes how to change the URLs of existing pages on your site while minimizing negative impact on your Google Search results. Examples of this kind of site move include:
HTTP
to HTTPS
.example.com
to example.net
or merging multiple domains or hostnames.example.com/page.php?id=1
to example.com/widget
, or example.com/page.html
to example.com/page.htm
301
, 302
, and other server side redirects don't cause a loss in PageRank.The details of site preparation vary for each site move, but typically you'll do one or more of the following:
Set up a robots.txt for your new site and make sure the rules in the new site's robots.txt file correctly reflect the parts you want blocked from crawling.
Note that some site owners block all crawling while in development. If you follow this strategy, make sure you prepare what the robots.txt file should look like once the site move starts. Likewise, if you use noindex
rules during development, prepare a list of URLs from which you'll remove the noindex
rules when you start the site move.
Provide errors for deleted or merged content if you're not moving to the new site all your old content, make sure those URLs correctly return an HTTP 404
or 410
error response code on the new site.
Ensure correct Search Console settings that may help with the site move.
If you haven't already, verify both the old and new sites in Search Console. Be sure to verify all variants of both the old and new sites. For example, verify www.example.com
and example.com
, and include both the HTTPS and HTTP site variants if you use HTTPS URLs. Do this for both old and new sites.
Review the Search Console verification
Make sure your Search Console verification will continue to work after the site move. If you're using a different method of verification, keep in mind that verification tokens may be different when the URL changes.
If you're using the HTML file method to verify ownership of your site in Search Console, make sure you don't forget to include your current verification file in your new copy of the site.
Likewise, if you verify ownership with an include file that references the meta
tag or Google Analytics to verify ownership, ensure the new CMS copy includes these as well.
Review any configured settings in Search Console that you may have made for the old site, and make sure the new site's settings are updated to reflect those changes as well. For example:
Clean up your recently purchased domain; you'll want to make sure it's clean of any outstanding issues from the previous owner. Check the following settings:
Use web analytics to analyze usage on both the old and new sites. Web analytics software can help with this. Typically, web analytics configuration consists of a piece of JavaScript embedded in your pages. The details for tracking different sites varies depending on your analytics software and its logging, processing, or filtering settings. Check with your analytics software provider for help. Additionally, if you have been planning to make any configuration changes to your analytics software, now is a good time. If you use Google Analytics, consider creating a new profile for your new site if you want clean separation in your content reports.
It's important to map your old site's URLs to the URLs for the new site. This section describes a number of general approaches you can take to correctly assess the URLs on your two sites and facilitate mapping. The exact details of how you generate this mapping will vary depending on your current website infrastructure and the details of the site move.
Determine your old URLsIn the simplest of site moves, you may not need to generate a list of your old URLs. For example, you could use a wildcard server-side redirect if you're changing your site's domain (for example, moving from example.com
to example.net
).
In more complex site moves, you will need to generate a list of old URLs and map them to their new destinations. How you get a listing of old URLs depends on your current website's configuration, but here are some handy tips:
Once you have the listing of old URLs, decide where each one should redirect to. How you store this mapping depends on your servers and the site move. You might use a database, or configure some URL rewriting rules on your system for common redirect patterns.
Update all URL details on the new siteOnce you have your URL mapping defined, you'll want to do three things to get the pages ready for receiving traffic.
rel="canonical" <link>
tag.rel-alternate-hreflang
annotations, be sure to update the annotations to use the new URLs.Once you have a mapping and your new site is ready, the next step is to plan your redirect strategy. We recommend server side permanent redirects from the old URLs to the new URLs as you indicated in your mapping. Check with your server administrator (or hosting company) about what kind of server side redirects you can technically do. It might be redirect rules in your .htaccess
files if your server is using Apache HTTP server or redirect functions in your CMS.
If none of the server side redirect setups are possible, you can fall back to client side redirects as a last resort.
Decide how you will move your site – all at once, or in sections:
Keep in mind the following:
301
and 308
.Once the URL mapping is accurate and you finalized the plan for how you're going to redirect, you're ready to move.
Don't redirect many old URLs to one irrelevant destination, such as the home page of the new site. This can confuse users and might be treated as a soft 404
error. However, if you have consolidated content previously hosted on multiple pages to a new single page, it is acceptable to redirect the older URLs to that new, consolidated page.
rel="canonical"
link
annotations and robots
meta
rules: Once the redirects are active, ensure that the rel="canonical"
link
annotations on the new site are using the new URLs. Similarly, if you added noindex
robots
meta
rules to the new site to avoid prematurely indexing the new URLs, make sure to update them.Keep the redirects for as long as possible, generally at least 1 year. This timeframe allows Google to transfer all signals to the new URLs, including recrawling and reassigning links on other sites that point to your old URLs.
From users' perspective, consider keeping redirects indefinitely. However, redirects are slow for users, so try to update your own links and any high-volume links from other websites to point to the new URLs.
The time it takes Googlebot and our systems to discover and process all URLs in the site move depends on how fast your servers are and how many URLs are involved. As a general rule, a small to medium-sized website can take a few weeks for most pages to move, and larger sites take longer. The speed at which Googlebot and our systems discover and process moved URLs depends on the number of URLs and the server speed.
Note that the visibility of your content in Search may fluctuate temporarily during the move. This is normal and a site's rankings will settle down over time. Update linksImmediately after the site move is started, try to update as many links as possible to improve the user experience and reduce your server load. These include:
Once you've started the site move, monitor how the user and crawler traffic changes on the new site and also the old site. Ideally the traffic on the old site will go down, while on the new site the traffic goes up. You can monitor user and crawler activity on the sites with Search Console and other tools.
Use Search Console to monitor trafficMany features of Search Console help you monitor a site move, including:
Keep an eye on your server access and error logs. In particular, check for crawling by Googlebot, any URLs that unexpectedly return HTTP error status codes, and normal user traffic.
If you installed any web analytics software on your site, or if your CMS provides analytics, it's also recommended that you review traffic this way so that you can see the progress of traffic from your old to new site. In particular, Google Analytics offers real-time reporting, and this is a handy feature to use during the initial site move phase. You should expect to see traffic drop on the old site and rise on the new site.
More resourcesSite migrations can be overwhelming and complicated, so there are lots of takes on how to proceed. We found Aleyda Solis' site migration checklists particularly useful, and also the Screaming Frog tool guide for site migrations.
If you're stuck at any point, look for help on Google Search Central.
There is plenty of good advice on our help page and specific cases answered in our user forums. If you can't find an answer, you can ask a question to one of our Google Search specialists during our SEO office hours.
Here are some common mistakes when migrating a site with URL changes (including HTTP to HTTPS). These mistakes can prevent your new site from being indexed completely.
Common mistakesnoindex
or robots.txt blocks
Don't forget to remove any noindex
or robots.txt blocks that were only needed for the migration.
It's fine if you don't have a robots.txt file on your site, but be sure to return a proper 404
HTTP status code if the robots.txt file doesn't exist.
To test:
Check your redirects from the old site to the new one. We frequently see people redirecting to the wrong (non-existent) URLs on the new site.
You can use Search Console to see if there are an unusually high number of "Not found" errors reported, or you can use other tools such as Screaming Frog to crawl your own site and see if the redirects work as expected.
Other crawl errorsExamine the Index Coverage report for a spike in other errors on your new site during migration events.
Insufficient server capacityAfter a migration, Google will crawl your new site more heavily than usual. This is because your site redirects traffic from the old to the new site, and any crawls of the old site will be redirected to the new site, in addition to any other crawling. Ensure that your site has sufficient capacity to handle the increased traffic from Google.
Not updating sitemapsBe sure that your sitemaps are all updated with the new URLs.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-06 UTC."],[[["This guide outlines how to change a website's URLs while minimizing search engine ranking impact, covering scenarios like HTTPS migration, domain changes, and URL path modifications."],["The process involves careful preparation, including mapping old URLs to new ones, setting up the new site, and planning the redirect strategy."],["Implementing the move requires activating redirects, updating internal and external links, and submitting a new sitemap to Search Console."],["Continuous monitoring is crucial, using tools like Search Console and web analytics to track traffic, identify errors, and ensure a smooth transition."],["Troubleshooting common issues and leveraging resources like Google Search Central can help address any problems during or after the site move."]]],["To minimize the impact of site moves on Google Search, prepare by mapping old URLs to new ones, updating internal links, and creating a new sitemap. Implement server-side redirects (301/308) from old to new URLs, avoiding chained redirects. For large sites, move in sections. Monitor traffic on both sites via Search Console and analytics. Update external links and profile links, submit the new sitemap, and maintain redirects for at least a year. Finally, address any `noindex`, robot.txt blocks and crawl errors.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4