Redesigning a Website Without Losing SEO: A 301 Redirect Plan

A new site often means new URLs. The page that was /about-us on the old site becomes /who-we-are on the new one, service pages get new names, and some pages are merged. Google, however, knows the old URLs, and rankings, links from other sites and visitors' bookmarks all point to them. If these URLs return "page not found" (404) on the day the new site goes live, part of the value built up over the years is lost.

The way to prevent this is simple but takes work: link every old URL to its counterpart on the new site with a permanent redirect (301). In this post we explain step by step how we plan this.

What do 301, 302 and 404 mean?

  • 301 (moved permanently): The page is now at a new URL. Over time Google drops the old URL from its index, puts the new one in its place and passes most of the old page's value to the new URL.
  • 302 (moved temporarily): The page is somewhere else for a while, so Google keeps the old URL. That is why it is not used for a site move; it is for maintenance or a short campaign.
  • 404 (not found): The page does not exist: the visitor lands on an empty page, and after a while Google drops the URL from its index.

In a site redesign there is one rule: every old URL whose content lives on in the new site goes to that content with a 301.

1. Make a complete list of the old URLs

The plan starts with knowing every URL on the old site. One source is not enough; you need to combine several:

  • The old site's sitemap (sitemap.xml).
  • Internal links found by a tool that crawls the whole site.
  • The page reports in Search Console and the URLs that got clicks in recent months.
  • URLs that get links from other sites.
  • Images and PDF files, especially if they bring visitors from Google Images or from other sites.

Old pages that are not in the sitemap but still get visitors turn up often, and a plan that relies only on the sitemap misses them.

Different URLs for the same page

On the old site, the same page may open at several URLs: with and without a trailing slash, in upper and lower case, or with parameters such as ?page=2. Check which of these is indexed in Google, and write the indexed form in the table. Campaign tracking parameters (?utm_source=…) usually do not affect redirects, whereas URLs with pagination or filter parameters need a separate decision.

2. Make a decision for each old URL

Put the list in a table: old URL, new URL, type of decision. Fill in the table together with someone who knows the content; often only the business knows which old service matches which new page. Each row falls into one of three cases:

  1. Exact match: The same topic exists on the new site. For example, the old "about us" page goes to the new "who we are" page.
  2. Close match: The same page does not exist, but there is a page close to the topic. For example, a removed sub-service goes to the main service page it belonged to.
  3. No match: The topic does not exist on the new site at all. Here the business owner decides: either the closest page is chosen, or the page is accepted as removed.

Avoid two mistakes here. The first is redirecting everything to the home page, because to Google, sending an unrelated URL to the home page is no different from a 404; this is called a "soft 404". The second is bending the new site's structure to match the old one just to keep the URLs the same. URLs can change; what matters is that every change is recorded in the table.

3. Do not build chains

A redirect should reach the final URL in one step; if URL A goes to B and B goes to C, you have a chain. Google follows a few steps, but each step slows crawling and raises the risk of losing value. If there are redirects left over from an earlier redesign, update them to the new target too.

Domain and secure connection rules follow the same logic: the move from http to https, and from the non-www to the www address, is done at server level, in one step.

4. Test before launch

The redirects are loaded in the test environment before the new site goes live, and every URL on the list is tested one by one. For each row, check three things:

  • Is the response code 301?
  • Is the destination the target in the table?
  • Does the target page return 200, meaning it is not itself a redirect or an error?

We do this check not by hand but with a small script that reads the list and requests each URL, because testing hundreds of URLs by hand always misses a row.

5. Launch day and after

  1. The redirects are loaded, and the https and www rules work.
  2. The new sitemap is submitted to Search Console.
  3. A sample of old URLs is tested in the browser.
  4. URLs that return 404 are watched in the first weeks, and any old URL missed from the list is redirected as soon as it turns up.
  5. The "Not found (404)" and "Page with redirect" counts in Search Console are watched.

It can take a few weeks for redirected pages to drop out of the index and for the new ones to take their place, and some movement in rankings during this time is normal. Still, do not rush to remove a redirect: Google takes time to pass on the value, and old links on other sites keep sending visitors for years. That is why we recommend keeping redirects permanently.

Where are redirects written?

For a small site, the server configuration file (.htaccess or the nginx configuration) may be enough, but with hundreds of rows it is safer to add and track redirects from the admin panel. That way a wrong row does not take down the whole site, you can see how many times each redirect is used, and new URLs that return 404 are collected in a list. On our sites, we manage page redirects from the panel and domain and https rules on the server.

SEO in a redesign is not only about redirects

A redirect carries the old value, but the new page also has to be at least as good as the old one. If the text that brought rankings to the old page was cut on the new page, rankings can drop even with perfect redirects. So compare the titles, descriptions and main text of old pages that got visitors with the new pages. Heading structure, internal links and page speed are also checked separately on the new site.

Checklist for the new site

  • Each page has its own title and description; titles that worked well on the old pages are kept.
  • The canonical tag on each page points to its own URL.
  • The sitemap contains only URLs that return 200 and that you want indexed.
  • The "noindex" block used in the test environment is removed on launch day.
  • The analytics and Search Console codes also work on the new site.

The last item looks simple but is often missed, yet if you lose the data from the first weeks after launch, you cannot measure the effect of the redesign.

We plan site redesigns together with design and software; the redirect table is part of the work from the start. For details, see our SEO service and corporate website pages. Our post on SEO-friendly websites, about building a new site ready for search engines from the start, completes this topic.

Frequently asked questions

Will my Google rankings drop after a redesign?

If the old URLs are redirected correctly and the new pages are at least as good as the old ones, a lasting drop is not expected, and some movement in the first weeks is normal. A move made without redirects, however, loses most of the old pages' value.

How long should a 301 redirect stay in place?

Google recommends at least one year, but because old links on other sites and bookmarks keep sending visitors for years, we recommend keeping redirects permanently.

Can I just redirect all old pages to the home page?

No, because when a URL whose topic has nothing to do with the home page goes there, Google treats it as a "soft 404" and does not pass on the old page's value. Each URL should go to the page closest to its topic.

Do I need redirects if the domain stays the same?

Yes, if the URLs change, because even with the same domain, /who-we-are instead of /about-us is a new URL. If the domain changes as well, you also use the Change of Address tool in Search Console.

Keep reading

All articles
Got a new project?

We saved this spot for you!

Already a client?

Your projects are in the panel, and our team is one message away.