Migration: Move a site with URL changes #GoogleSEOGuide #s2ep02
This episode describes how to change the URLs of existing pages on your site with minimal impact on your Google Search results. Examples of this kind of site move include:
URL changes from?HTTP?to?HTTPS are also considered as migration.
FAQs for all site moves with URL changes
Prepare the new site
The details of site preparation vary for each site move, but typically you'll do one or more of the following:
? Set up a new content management system?(CMS) and add content to it.
? Transfer images and downloads?(such as PDF documents) that you currently host.
? These might already be getting traffic from Google Search or links, and it's useful to tell users and Googlebot about their new location.
? For a move to HTTPS, get and configure the required TLS certificates on your server.
? Set up a robots.txt for your new site
The robots.txt file for a site controls which areas Googlebot can crawl. Make sure the directives in the new site's robots.txt file correctly reflect the parts you want to be 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?directives during development, prepare a list of URLs from which you'll remove the?noindex?directives when you start the site move.
? Provide errors for deleted or merged content
For content on the old site that will not be transferred to the new site, make sure those orphaned URLs correctly return an HTTP 404 or 410 error response code. You can return the error response code at the old URL in the configuration panel for your new site, or you can create a redirect for a new URL and have that return the HTTP error code.
? Ensure correct Search Console settings
A successful site move depends on correct— and up-to-date —Search Console settings.
If you haven't already,?verify?that you own 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 included file that references?meta tag?or?Google Analytics?to verify ownership, ensure the new CMS copy includes these as well.
? Review any configured settings in Search Console
If you had changed some of the configuration settings in Search Console for your old site, make sure the new site's settings are updated to reflect those changes as well. For example:
? Clean up your recently purchased domain
If your new site is for a 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
During a site move, it's important 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 site 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.
? Ensure that your server has enough computing resources
After 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 new site has sufficient capacity to handle the increased traffic from Google.
? Update app links
As soon as your HTTPS pages are ready, update any app links intended to open your web pages in an app when displayed in Google Search results. Update these links to point to the new HTTPS URLs. Redirects won't work for these links; mobile browser clicks will open the page in the browser instead of the app unless you update your app link handling.
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.
Prepare URL mapping
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 URLs
In 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:
? Create a mapping of old to new URLs
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
Once you have your URL mapping defined, you'll want to do three things to get the pages ready for the move.
1?? Update annotations?to point to the new URLs in the HTML or sitemaps entry for each page:
2?? Update internal links.
3?? Save the following lists for your final move:
? Prepare for 301 redirects
Once you have a mapping and your new site is ready, the next step is to set up?HTTP 301 redirects?on your server from the old URLs to the new URLs as you indicated in your mapping.
Keep in mind the following:
Start the site move
Once the URL mapping is accurate and the redirects work, you're ready to move.
1?? Decide how you will move your site?— all at once, or in sections:
2?? Update your robots.txt files:
3?? Configure the old website to?redirect users and Googlebot to the new site?based on the URL mapping.
4?? Submit a?Change of Address?in Search Console for the old site. If you're moving your site from HTTP to HTTPS, you don't need to use the?Change of Address?tool.
5?? 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 the 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.
6?? Submit the new sitemap in Search Console. This will help Google learn about the new URLs. At this point, you can remove your old sitemap, since Google will use the new sitemap going forward.
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 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 the process moved URLs depends on the number of URLs and the server speed.
? Update incoming links
Immediately after the site move is started, try to update as many incoming links as possible to improve the user experience and reduce your server load. These include:
Monitor traffic
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 traffic
Many features of Search Console help you monitor a site move, including:
?Use other tools to monitor traffic
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.
Troubleshooting your site move
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.
?? noindex?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 quickly if the robots.txt file is requested but not provided.
To test:
?? Incorrect redirects
Check your redirects from the old site to the new one. Google frequently sees people directing to the wrong (non-existent) URLs on the new site.
?? Other crawl errors
Examine the?Index Coverage report?for a spike in other errors on your new site during migration events.
?? Insufficient capacity
After 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 app links
If you open your web pages within your app, update the app links to the new URLs before you implement your old to new page redirects. Otherwise, Google won't suggest using the app to open the new URLs in search results, but will direct users to the website in the browser instead.
?? Not updating sitemaps
Be sure that your sitemaps are all updated with the new URLs.
?? Not updating Data Highlighter
If you used?Data Highlighter?to map your old pages, you will need to redo your mappings for your new site.
To be continued...
Thank you for learning with us. This episode is based on?the Fundamentals of SEO Starter Guide?by Google.?Remember, you could always follow all of the episodes for "Google SEO Guide" from the document below:
How Will We Do It? ??????
We won’t care what anyone says, and SEO & Digital Marketing will change our lives!!!
What Will We Learn:???????
Click the below link and get the?#LearningSEOsocially?Calendar Season 1&2. Follow this plan and learn with me how to develop?#SEO?skills with free guides, resources, tools, and more.
Follow Eachother to?#LearnSEO?Socially:???????
BONUS:???????
Don't forget to get a list of?29?Must-Have?#SEO?Skills?basic to mastery.