Skip to content

Guide

How to change your domain or URLs without losing your Google rankings

Rebranding, moving to an international domain or rebuilding your website often means changing page addresses. Done without a plan, Google takes longer to understand what happened and the site can lose for weeks the traffic it already had. Based on Google Search Central’s official documentation, this guide covers what to prepare, which redirects to use, how long to keep them and what to expect, and explains how we moved our own site to hipixelbot.com.

By PixelBotPublished: Last updated:

The short answer

To keep your rankings when you change your domain or URLs, you need three things: a map showing which new address matches each old one, a permanent redirect (301 or 308) from every old page to its new equivalent, and, when the domain or a subdomain changes, a notice to Google through the Change of Address tool in Search Console.

Even when everything is done right, Google says temporary ranking fluctuations are normal while it processes the move, and a medium-sized site can take a few weeks or more before the new URLs show up. The goal is to avoid permanently losing what you had already earned.

First: what kind of change are you making?

Not every change needs the same steps. According to Google’s documentation:

ChangeDo URLs change?Use Change of Address in Search Console?
One domain to another (company.com → newcompany.com)YesYes, from the old domain’s property
One subdomain to another (shop.company.com → company.com)YesYes
HTTP to HTTPSYesNo: Google detects it from the redirects
www to non-www on the same domainYesNo: redirects or canonical tags are enough
New paths on the same domain (/services/web → /web-development/)YesNo: redirects and a new sitemap
New hosting or a CDN with the same addressesNoNo: Google has a separate guide (no URL changes)

One thing at a time

A key piece of Google’s advice is to change only one thing at a time: if you are changing your domain and redesigning the site, move the domain first with the same structure and change the design afterwards. Search Console Help is blunt about it: if you combine a site move with a redesign of the content and URL structure, you will probably see some traffic loss.

Google also suggests moving during a low-traffic period if your business allows it and, on large sites, moving section by section. Small and medium sites are better off moving all URLs at once.

Before the move: prepare the new site

Before you turn on redirects, the new site should be complete and tested:

  • All content, images and downloadable files (PDFs, catalogs) are on the new site.
  • The new site’s robots.txt allows crawling, and any noindex tags or blocks used during development are removed.
  • Pages you are not migrating return a 404 or 410 error, not the home page.
  • Both the old and new properties are verified in Search Console with the same Google account, including every variant (with and without www).
  • Your server can handle more Googlebot visits than usual: Google says it will crawl the new site more heavily for a while.

The URL map: the step most people skip

The map is a two-column table: old address and new address. To avoid missing pages, Google suggests building the old list from your sitemap, server logs, analytics, the Search Console Links report and your CMS, including images and files.

Once the map is ready, every page on the new site should have a canonical tag pointing to its own new URL, hreflang annotations (on multilingual sites) should use the new URLs, and internal links should point straight to the new addresses instead of going through a redirect.

Which redirects to use

Google treats each redirect type differently. Permanent redirects tell it to show the new page in search results; temporary ones tell it to keep showing the old one:

TypeHow Google reads itGood for a site move?
Server-side 301 or 308PermanentYes: the recommended option
Server-side 302, 303 or 307TemporaryNo: the old page stays in results
Instant meta refresh (0 seconds)PermanentOnly if server-side redirects are not possible
Delayed meta refresh (over 0 seconds)TemporaryNo
JavaScript redirectPermanentLast resort only

Redirect mistakes that cost rankings

  • Sending every old page to the new home page. Google may treat those irrelevant redirects as soft 404s, so the old page passes nothing on. Merging several old pages into one equivalent new page is fine.
  • Redirect chains (old → intermediate → new). Googlebot can follow up to 10 hops, but Google recommends going straight to the final destination and, if that is not possible, keeping chains ideally to no more than 3 hops and fewer than 5.
  • Using temporary (302) redirects "for now" and forgetting to change them.
  • Redirecting only the home page and leaving the rest of the old pages with no destination.
  • Dropping query parameters: if the old page received visits with campaign parameters (such as utm_source), the redirect should keep them.

Moving day

  • Turn on permanent redirects from every old URL to its new equivalent.
  • Use the Search Console URL Inspection tool, or a crawler, to confirm redirects return 301 and land on the right page.
  • Check that canonical tags on the new site point to the new URLs and that no testing noindex is left.
  • Submit the sitemap with the new URLs in the new Search Console property.
  • If the domain changed, open the Change of Address tool in the old property and choose the new one. Prerequisite: a 301 redirect from the old home page to the new one.
  • Update the links you control: Google Business Profile, social profiles, email signatures, ads and, where possible, directory and partner links.

The www detail: one request per variant

The Change of Address tool does not move subdomains below the domain you choose, and that includes www. Google asks you to use it for every variant of the old domain, with and without www, even if one of them is not in use. In practice: verify both company.com and www.company.com in Search Console and submit the change from each. Protocol variants are included: moving http://company.com also moves https://company.com.

How long to keep redirects and the old domain

Google recommends keeping redirects as long as possible, generally at least one year, and suggests considering keeping them indefinitely for people arriving from old links. The Change of Address tool lasts 180 days: after that, Google no longer recognizes a relationship between the old and new sites, so redirects must stay active at least that long, and longer if Google Search still sends traffic to the old URLs.

That is why you should not let the old domain expire: Search Console Help recommends renewing it for at least a year. If it lapses and someone else buys it, your redirects disappear and anyone with an old link ends up on someone else’s site.

What to expect in traffic and how to measure it

Rankings moving up and down during a migration is normal. Google needs to visit every old and new URL at least once to consider the move complete, and there is no fixed crawl frequency: for a medium-sized site it can take a few weeks or more. Google will gradually start showing the new URLs instead of the old ones.

To follow the process, Google suggests watching the Search Console Sitemaps report (indexed URLs in the old sitemap should drop as the new one’s rise; redirect warnings in the old sitemap can be ignored), the indexing report and the search performance report, and comparing analytics traffic for the old domain, which should fall, with the new one, which should rise. A practical tip from us: historical data stays in the old Search Console property, so don’t delete it.

How we did it at PixelBot

On November 19, 2026 we moved our website from pixelbotcol.com to hipixelbot.com, so we could work with clients outside Colombia under a name not tied to one country. We kept exactly the same paths (only the domain changed), and every address on pixelbotcol.com and www.pixelbotcol.com returns a 301 redirect to the same path on hipixelbot.com, query parameters included. Before turning on the redirects, we updated canonical tags, hreflang, the sitemap, structured data and internal links to the new domain in the code.

The next day we crawled all 230 addresses in the new sitemap: all of them respond correctly, each has a self-referencing canonical and none mentions the old domain. We submitted the Change of Address in Search Console for the main domain; the www variant has to be verified and submitted separately. It is still too early to measure the effect on traffic, so we are not promising a result we have not seen.

How we can help

If you are redesigning your website or changing platforms or domains, PixelBot prepares the URL map, sets up permanent redirects, reviews canonical tags, sitemap and structured data, and works with you in Search Console before and after the change. If your current site runs on a platform that does not allow page-level redirects, we tell you before we start so we can find another way.

Sources

Official documents and texts consulted when writing or reviewing this guide.

  1. Google Search Central: Site moves with URL changes(opens in a new tab)https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes
  2. Search Console Help: Change of Address tool(opens in a new tab)https://support.google.com/webmasters/answer/9370220
  3. Google Search Central: Redirects and Google Search(opens in a new tab)https://developers.google.com/search/docs/crawling-indexing/301-redirects
  4. Google Search Central: Site moves without URL changes (hosting or CDN)(opens in a new tab)https://developers.google.com/search/docs/crawling-indexing/site-move-no-url-changes

Changing your domain or rebuilding your website?

Tell us what you have today and what you want to change. We review your current URLs and tell you how to make the switch without losing what you already have on Google.

Frequently asked questions

Will I lose my rankings if I change my domain?

Not permanently, if every old URL redirects with a 301 to its new equivalent and you use the Search Console Change of Address tool. Google Search Central’s site move guide says 301 and other permanent redirects do not cause a loss in PageRank, but temporary fluctuations are normal while it processes the move.

How long should I keep 301 redirects?

Google recommends keeping them as long as possible, generally at least one year. The Search Console Change of Address lasts 180 days, and Google recommends renewing the old domain for at least a year.

How long does Google take to show the new domain?

It depends on the size of the site and how much Google crawls it. For a medium-sized site, the official documentation mentions a few weeks or more; larger sites take longer.

Can I redesign my site and change my domain at the same time?

You can, but Google recommends changing one thing at a time and warns that combining a move with a redesign of the content and URLs will probably cause some traffic loss. The safest path is to move the domain first with the same structure and change the design afterwards.

What happens if I redirect every old page to the home page?

Google may treat those redirects as soft 404s and pass nothing on to the new page. Each old page should go to its closest equivalent; pages with no equivalent should return 404 or 410.