A glowing blue android in profile under a starry sky
Willis Web Design / 01 of 08

Home / SEO Tips / 301 Redirects And Site Moves

SEO Tips

301 Redirects And Site Moves: Change Without Losing Rankings

301 redirects are how you tell Google and your visitors that a page has moved for good. Get them right and a new domain, new hosting or a full redesign can keep the search traffic you have built up. This guide explains every redirect type, how to plan a site move, and how to test or pause safely.

What A Redirect Does And When You Need One

A redirect sends anyone who asks for one address to a different one. To a visitor it is invisible: they click a link and land on the right page. To Google it is a message that the content has a new home. Google lists four common reasons to use one:

  • You are moving the whole site to a new domain name.
  • People can reach your site at several addresses, such as with and without www, and you want one main version.
  • You are merging two websites into one, and old links need to land on the right pages.
  • You have deleted a page and want visitors sent to its replacement.

If you use a hosted shop or blog platform, look for a built-in redirect setting in its help pages before doing anything technical.

What this means for you: any time an address on your site changes, the old one needs to point somewhere sensible. Every website redesign I do maps every old address to its new page and sets a 301 redirect for each one, because a redesign that skips this step can lose years of search traffic.

301 Redirects And Site Moves In The SEO Tips Map

Every part of the SEO tips, on one map. The page you are reading is highlighted.

The Redirect Types Google Recognises

Visitors cannot tell redirect types apart, but Google can. A permanent redirect tells Google to show the new address in results. A temporary one tells it to keep showing the old address. Choose based on how long the redirect will stay and which address you want people to see in search.

TypeKindHow Google treats it
301 and 308PermanentFollowed, and a strong sign the new address is the main one. Use only if you will not undo it.
Instant meta refreshPermanentA refresh tag or header set to zero seconds counts as permanent.
JavaScript locationPermanentFollowed after Google renders the page. Use only when the options above are not possible.
Crypto redirectPermanentA visible "we have moved" link. A last resort only.
302, 303 and 307TemporaryFollowed, but not used as a sign that the new address is the main one.
Delayed meta refreshTemporaryA refresh tag or header with any delay above zero counts as temporary.

Google ranks these by how reliably it understands them, and server-side redirects come out on top. Google also keeps a record of both addresses. The one it picks as the main version shows in results, while the other becomes an "alternate name". After a domain move, the old address can still show up now and then, for example when someone searches for it by name. Google says that is normal and fades by itself. Picking the main version is covered in more depth in the canonical URLs guide.

Setting Up Redirects On Your Server

Server-side redirects need access to your server settings, such as the .htaccess file on Apache, or a script such as PHP that can send headers. Both permanent and temporary types are possible. Here is a permanent redirect in PHP, which must run before anything is sent to the browser:

<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: https://www.example.com/newurl');
exit();

On Apache, simple redirects use the Redirect permanent or Redirect temp lines, and complex patterns use rewrite rules with the R=301 flag. On NGINX, a simple one looks like this:

location = /service {
  return 301 $scheme://example.com/newservice;
}

Other servers, such as LiteSpeed, have their own guides, or your host can set it up.

When You Cannot Change The Server

Some platforms do not allow server redirects. The next best option is a meta refresh tag in the page head, set to zero seconds so it counts as permanent:

<meta http-equiv="refresh" content="0; url=https://example.com/newlocation">

If that is not possible either, a JavaScript redirect works once Google renders the page, but rendering can fail, so Google may never see it. The JavaScript SEO guide explains why. The final fallback is a plain link saying the page has moved. Google may treat it as a redirect, but other search engines may not, so speak to your host about better options first. Other tags in the page head are covered in meta tags and noindex.

Changing Hosting Without Changing Your Addresses

Moving to a new host or a content delivery network, while every web address stays the same, is the simpler kind of move. No redirects are needed. Google sets out four stages:

  1. 01

    Prepare The New Host

    Copy the site across and test everything: pages, images, forms and downloads. A test address should carry a noindex rule. Check with the URL Inspection tool that Googlebot can reach it, and that firewalls do not block it.

  2. 02

    Lower The DNS Time-To-Live

    At least a week before, cut the DNS time-to-live to a few hours so internet providers pick up the change quickly. Make sure your Search Console verification file or tag is on the new copy.

  3. 03

    Switch And Watch

    Remove any test-only blocks, then point your DNS at the new host. Watch both servers' logs: traffic should fall on the old one and rise on the new one.

  4. 04

    Close The Old Host

    Once the old server gets no traffic at all, shut it down. The move is complete.

Google adds that a short dip in how often Googlebot crawls is normal right after a move. It usually climbs back over the following days, sometimes higher than before, as long as the new server is quick and reliable. More on crawl rates is in how Googlebot crawls your site.

What this means for you: a hosting move should be quiet and invisible. If you are moving to my managed UK hosting, the move is done step by step along these lines.

Moving To New Addresses: Planning And URL Mapping

A move with address changes, such as HTTP to HTTPS, a new domain or new page paths, needs much more care. Google's general advice comes first:

Change One Thing At A Time

Move the domain first and change the design later, not both at once. Large sites can move one section first as a test.

Pick A Quiet Time

Move when traffic is low, so fewer people are affected and your server has room for Googlebot's extra visits.

Expect Some Wobble

A medium-sized site can take weeks for Google to show the new addresses. Googlebot has to visit every old and new address at least once.

Prepare The New Site

Set up the new site, ideally on the same system as the old one, and bring across content, images and downloads. Set up your security certificate for HTTPS. Plan the robots.txt file and remove any noindex rules used while building. Deleted pages that are not moving should return a not found or gone status. In Search Console, verify every version of the old and new sites, let Googlebot set its own crawl rate, move across any disavow file, and check a newly bought domain for old penalties. Make sure your server can cope with heavier crawling.

Build The URL Map

A simple domain change can use one pattern-based redirect. Anything more complex needs a list of every old address, gathered from your sitemaps, analytics, server logs, Search Console's links report and your website system. Include images, video, scripts and style files. Then match each old address to its new one. On the new site, give every page a self-referencing canonical tag, update any hreflang tags and change internal links to the new addresses. Save a new XML sitemap and a list of other sites that link to you.

Use permanent server-side redirects (301 or 308). Point each old address straight at its final page. Googlebot will follow up to ten hops, but Google says to keep chains to three at most if you can, and never more than five.

Launch Day And The Weeks After A Site Move

  1. 01

    Switch On The Redirects

    Send each old page to its closest match. Sending lots of pages to the home page can be treated as a soft not found error. Merging several old pages into one new page is fine.

  2. 02

    Check Tags And Test

    Canonical tags should point to new addresses, and build-time noindex rules should be gone. Test single redirects with URL Inspection, and many with a crawler or script.

  3. 03

    Tell Google About A New Domain

    Use the Change of Address tool only when the domain or subdomain changes, for every old version you own. It is not needed for HTTPS or www changes.

  4. 04

    Submit The New Sitemap

    Add the new sitemap in Search Console and remove the old one. Keep redirects for at least a year, ideally for good.

Straight after launch, update your internal links, ask the sites that send you the most visitors to update their links, change links on your social profiles, and point adverts at the new landing pages.

What To Watch

Traffic should slide from the old site to the new one. In Search Console, the new sitemap starts at zero indexed pages and climbs, while the old one falls; redirect warnings on the old sitemap are expected. Check the indexing reports for error spikes, and the search results report for clicks moving to new addresses. Server logs and analytics show the same shift. Google lists the usual mistakes: noindex or robots.txt blocks left on, redirects to pages that do not exist, too little server capacity and sitemaps still listing old addresses. If traffic does fall and stays down, work through the traffic drop checks.

What this means for you: the redirect checks in the website launch checklist cover this in order. For a second pair of eyes, a technical SEO audit checks redirects, canonicals and sitemaps after a move.

Testing Page Versions Without Hurting Rankings

A/B testing means showing different versions of a page to different visitors to see which works better, such as two button wordings. Multivariate testing changes several things at once. Tests either send some visitors to a separate address, or swap parts of the page using JavaScript. Google says small changes, such as button colour or wording, rarely affect snippets or rankings at all. Its rules for testing safely are:

  • Do not cloak. Showing Googlebot different content from people breaks Google's spam policies, test or not. Googlebot usually has no cookies, so it sees what a visitor without cookies sees.
  • Use canonical tags. Point each test version at the original page, rather than using noindex, which can have unexpected side effects.
  • Use 302 redirects, not 301. A temporary redirect keeps the original address in results. JavaScript redirects are fine too.
  • End tests promptly. Once you have enough data, keep the winner and remove the test addresses, scripts and markup. A test left running too long can look like an attempt to mislead Google.

What this means for you: testing is a healthy habit for improving enquiries, and conversion work often uses it. Just keep tests short and tidy.

Pausing Your Business Without Vanishing From Google

If you need to stop trading for a while, such as when stock runs out, Google's advice is to keep the site online but limit what it does. Switch off the basket or booking form, and show a clear notice on every page about delays or when you will be back. Wrap that notice in data-nosnippet so it does not become your search snippet. Update your structured data for stock or event status, update opening hours, and ask Google to recrawl a few pages through Search Console, or many through a sitemap. Shops with product feeds should see ecommerce on Google.

If You Really Must Take The Site Down

Google warns that dropping out of the index can be slow to recover from, and there is no way to hurry it. If you go ahead anyway:

  • For a day or two, return a 503 status with a helpful message and a retry-after header.
  • For longer, show a simple home page with a normal 200 status explaining the closure.
  • Keep robots.txt reachable; never block all crawling or return a 503 for it.
  • Avoid 403, 404 and 410 statuses and noindex, which take pages out of Google.
  • Do not use the temporary hide request in Search Console for a closure; see what that request is really for.

Google also says not to block visitors from one country by turning the site off for them, because Googlebot mostly crawls from the United States. Lowering the crawl rate is allowed if Googlebot strains your server, but set a reminder to reset it. Letting the domain itself lapse is a far bigger risk, so read the domain names page on keeping yours renewed. More guides are on the SEO Tips map, and a free website audit checks any page in about a minute.

Based on Google Search Central documentation: Redirects and Google Search, Changing your hosting, How to move a site with URL changes, Minimize A/B testing impact in Google Search, Temporarily pause or disable a website. Licensed under CC BY 4.0. Rewritten in plain English by Willis Web Design; last checked 13 October 2026.

Questions

Questions About 301 Redirects And Site Moves

Do 301 redirects lose ranking power?

Google says 301 and other permanent redirects do not cause a loss of PageRank, the value passed through links. Rankings can still wobble for a few weeks during a move while Google recrawls old and new addresses, which is normal. The real losses come from missing redirects, redirects that point to the wrong page and long chains of hops, so plan the map carefully.

How long should I keep my old redirects?

Google recommends keeping them for at least a year, so it has time to move all the signals across and recrawl every link to the old addresses. It also suggests thinking about keeping them for good, because visitors may still follow old links and bookmarks years later. Redirects cost almost nothing to leave in place, so there is rarely a good reason to take them down.

Should I redirect all my old pages to the new home page?

No. Google says sending lots of old addresses to an unrelated page, such as the home page, can be treated as a soft not found error, so the old page's value is not passed on. Redirect each old page to the closest matching new page. Several old pages pointing to one new page that combines them is fine.

What is the difference between a 301 and a 302 redirect?

A 301 says the move is permanent, so Google shows the new address in results. A 302 says the move is temporary, so Google keeps showing the original address. Use 301 when the change is for good, such as a redesign or new domain. Use 302 for short-term cases, such as an A/B test that sends some visitors to a test version.

Do I need the Change of Address tool when moving to HTTPS?

No. Google says the Change of Address tool is only for moving to a different domain or subdomain, for example from one .co.uk name to another. Switching from HTTP to HTTPS, adding or dropping www, or changing paths on the same domain does not need it. Those moves rely on good permanent redirects, updated links and a fresh sitemap instead.

Can I take my website offline while I close for a few weeks?

Google advises against it. Taking a whole site down can push it out of the index, and recovery can be slow with no way to speed it up. A better route is to keep the site live, switch off ordering or booking, and show a clear notice on every page. If you must shut it, use a 503 status for a day or two only.

Next step

See where your website stands, free.

Run a free test of your current site, or call me for a straight answer about what you need.