← Tous les articles

Website redesign: how to keep your Google rankings (a step-by-step redirect plan)

A redesign can wipe out years of SEO work overnight. URL inventory, redirect map, 301 rules, launch-day checks and follow-up: the method we use on every redesign we deliver.

Website redesign: how to keep your Google rankings (a step-by-step redirect plan)

Key points

  • Traffic lost after a redesign almost always comes from URLs that changed without a redirect, or a staging setting left switched on in production.
  • The work happens before launch: an inventory of the URLs that matter, an old-to-new redirect map, and 301 rules that have been tested.
  • On launch day and in the following weeks, check with proper tools (a test script, Search Console, 404 logs), not by clicking around.

“We’re rebuilding the website. Are we going to lose our Google rankings?” Almost every business owner asks us this before a redesign, and they’re right to. A new site that looks better, loads faster and reads better can still see its organic traffic collapse for weeks if one step is missed: the pages Google knew about have vanished, and nobody told it where they went. The good news is that this risk can be managed almost entirely with a simple method and some discipline. Here is the one we follow on our projects, with the actual commands and files, whether you’re handling the redesign yourself or want to know what to ask of your agency.

Why redesigns lose traffic

Google ranks pages, not websites. Each of your pages has built up signals over time: links from other sites, a history of clicks, a place in your internal linking, a title that matches certain searches. When a redesign changes the page’s address, those signals stay attached to the old one. If the old URL now returns a 404, Google eventually drops it from the index, and the traffic it brought goes with it.

When we’re called in to fix a redesign after the fact, it’s usually the same handful of causes:

  • URLs changed with no redirect: a new site structure, shorter slugs, /blog/2019/05/post/ becoming /blog/post/, a different default language.
  • Pages deleted because they looked unimportant, when they were actually bringing in real traffic, such as an old blog post that ranks very well.
  • A staging setting left on: WordPress’s “Discourage search engines from indexing this site” box, a stray noindex tag, Disallow: / in robots.txt, or password protection.
  • Thinner content: headings rewritten to fit the design, copy cut down, title tags and meta descriptions lost during the import.
  • Broken internal links: links in the content that still point to old URLs and go through redirects, or worse, to 404s.

Step 1: inventory every URL that matters

Before anyone draws a wireframe, you need to know what exists and what earns its keep. We always combine several sources, because none of them is complete on its own:

  • The current XML sitemaps: the pages the site says it has.
  • Google Search Console, Performance report, Pages tab, over the last sixteen months: the pages that actually get impressions and clicks. Export it.
  • Your analytics tool (landing pages): it surfaces pages missing from the sitemap that still get visits, like old campaign pages.
  • A full crawl with a crawler such as Screaming Frog or Sitebulb: it also finds PDFs, linked images and orphan pages that are still reachable.
  • Pages with external links, from Search Console’s Links report or a backlink tool. A page with no traffic but good links deserves a careful redirect.

To pull the list of URLs declared in the sitemaps, a few lines in a terminal will do:

# Every URL listed in the sitemaps (index + child sitemaps)
for s in $(curl -s https://www.example.com/sitemap_index.xml | grep -o '<loc>[^<]*' | sed 's/<loc>//'); do
  curl -s "$s" | grep -o '<loc>[^<]*' | sed 's/<loc>//'
done | sed 's#https://www.example.com##' | sort -u > current-urls.txt

wc -l current-urls.txt

Then bring everything together in a spreadsheet, one row per URL, with a column for traffic and one for external links. That sheet becomes the reference for the whole project. For a brochure site it’s often a few dozen rows; for a site with a long-running blog or a shop, it can be thousands. In that case you don’t handle each row by hand: you identify URL families (posts, categories, product pages) that will follow one shared rule.

One piece of advice from experience: keep a full copy of the old site, either a database and files export or at least a crawl with titles and meta descriptions. The day a page drops in the rankings, being able to compare old and new content saves a lot of time.

Step 2: build the redirect map

The redirect map pairs each old URL with its new address. It’s the central document of the migration, and it should be signed off by someone who knows the content, not just the developer. A plain CSV file is enough, and you’ll reuse it later to test the redirects automatically:

old_url;new_url
/services/website-design/;/web-design/
/services/seo/;/search-engine-optimisation/
/blog/2019/05/seo-tips/;/blog/seo-tips/
/team/;/about/
/christmas-offer-2018/;410

The rules we follow when filling it in:

  • Keep the URL whenever you can. The best redirect is the one you don’t need. If a page gets a new design but keeps its topic, keep its address.
  • Redirect to the closest equivalent, page by page. The old “website design” page goes to the new “web design” page, not to the homepage.
  • Never send everything to the homepage. Google treats mass redirects like that as disguised 404s (“soft 404s”): you lose the page’s signals, and visitors land somewhere that doesn’t answer their search.
  • Own the deletion when content has no equivalent, no traffic and no links. A 410 (“gone for good”) is more honest than a redirect to an unrelated page.
  • Avoid chains: if a URL was already redirected in a previous redesign, point that old redirect straight at the final destination.

Step 3: set up the 301 redirects

A 301 says the page has moved permanently, and search engines pass most of the old address’s signals on to the new one. A 302, which means temporary, isn’t meant for a redesign. There are three places you can declare redirects; pick one, so rules don’t contradict each other.

On Apache, in the .htaccess file, before the WordPress block so the rules are read first:

# Put this BEFORE the "# BEGIN WordPress" block in .htaccess
RewriteEngine On

# One-to-one redirects
RewriteRule ^services/website-design/?$ /web-design/ [R=301,L]
RewriteRule ^services/seo/?$ /search-engine-optimisation/ [R=301,L]
RewriteRule ^team/?$ /about/ [R=301,L]

# Pattern rule: the old dated blog URLs
RewriteRule ^blog/[0-9]{4}/[0-9]{2}/([^/]+)/?$ /blog/$1/ [R=301,L]

# Removed content with no equivalent: 410 Gone
RewriteRule ^christmas-offer-2018/?$ - [G,L]

On Nginx, a map stays readable even with hundreds of lines and doesn’t slow the server down:

# Inside the http {} block
map $uri $new_url {
    default                         "";
    /services/website-design/       /web-design/;
    /services/seo/                  /search-engine-optimisation/;
    /team/                          /about/;
    ~^/blog/d{4}/d{2}/([^/]+)/?$  /blog/$1/;
}

# Inside the server {} block
location = /christmas-offer-2018/ { return 410; }

if ($new_url) {
    return 301 $new_url$is_args$args;
}

The $uri variable doesn’t include the query string, so /team/?ref=newsletter is redirected just like /team/. However, return doesn’t carry the query string over by itself: that’s what $is_args$args is for, otherwise campaign parameters such as utm_source would be lost on the way. Run nginx -t before every reload.

In WordPress, if you can’t touch the server configuration, a redirect plugin does the job well and can import your CSV. For a handful of redirects, a few lines in a small custom plugin are enough:

add_action( 'template_redirect', function () {
    // Only redirect what no longer exists: a real page always wins.
    if ( ! is_404() ) {
        return;
    }

    $redirects = [
        '/services/website-design/'   => '/web-design/',
        '/services/seo/'              => '/search-engine-optimisation/',
        '/team/'                      => '/about/',
    ];

    $path = trailingslashit( (string) wp_parse_url( $_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH ) );

    if ( isset( $redirects[ $path ] ) ) {
        wp_safe_redirect( home_url( $redirects[ $path ] ), 301 );
        exit;
    }
} );

The is_404() check matters: the redirect only fires if the old address no longer exists, so you won’t accidentally redirect a page you recreate later with the same slug. For large volumes (thousands of URLs), use the server instead: the rule runs before WordPress even loads.

Finally, think about variants: with and without a trailing slash, with and without www, HTTP and HTTPS. They should all reach the same canonical address in a single hop.

Step 4: launch day

Launch is when staging settings sneak into production. This is the checklist we run, in order:

  • Untick “Discourage search engines from indexing this site” (Settings → Reading) and make sure no page carries an unintended noindex tag.
  • Open /robots.txt and check that Disallow: / is gone.
  • Remove any password protection or IP restriction.
  • Check that canonical tags point to the production domain, not the staging one.
  • Run the redirect test script below and fix every failing row.
  • Submit the new sitemap in Search Console and inspect a few key pages with the URL Inspection tool.
  • Update internal links in the database that still point to old URLs, so your own visitors don’t bounce through redirects.

Testing redirects doesn’t mean clicking ten random links. This script reads the redirect map and checks, for every row, the status code, the exact destination, and that the destination itself answers directly:

#!/usr/bin/env bash
# Usage : ./check-redirects.sh redirects.csv https://www.example.com
file="$1"; site="$2"; errors=0

while IFS=';' read -r old new; do
  [ "$old" = "old_url" ] && continue
  lu=$(curl -s -o /dev/null -w '%{http_code} %{redirect_url}' "$site$old")
  code=${lu%% *}; target=${lu#* }

  if [ "$new" = "410" ]; then
    [ "$code" = "410" ] || { echo "KO $old : $code instead of 410"; errors=$((errors+1)); }
    continue
  fi

  if [ "$code" != "301" ] || [ "$target" != "$site$new" ]; then
    echo "KO $old : $code $target (expected: 301 to $new)"; errors=$((errors+1)); continue
  fi

  # The destination must answer 200 directly: no chain, no 404
  final=$(curl -s -o /dev/null -w '%{http_code}' "$site$new")
  [ "$final" = "200" ] || { echo "KO $new returns $final"; errors=$((errors+1)); }
done < "$file"

echo "$errors error(s)"
[ "$errors" -eq 0 ]

We run it once on staging (swapping the domain), again right after the switch, and again the next day. It exits with an error code when something’s wrong, so it can also run as part of an automated deployment. If you’re also changing domain, use Search Console’s Change of Address tool once the redirects are live on the old domain.

Step 5: monitor over the following weeks

Even a flawless redesign causes some movement: Google has to recrawl the pages, see the redirects and reassess the new content. Some fluctuation over a few weeks is normal. What isn’t normal is a drop that drags on or hits specific pages. To tell the two apart, we track:

  • Search Console’s indexing report (Pages): a rise in “Not found (404)” or “Excluded by noindex tag” means something needs fixing now.
  • 404 logs from the server or a redirect plugin: they reveal URLs missed in the inventory, often old pages linked from partner sites or PDFs.
  • Clicks per page in Search Console, comparing the same weeks before and after: you spot the page that lost its visits straight away.
  • Rankings for a list of key queries, recorded before the redesign so you have something to compare against.

Keep your redirects in place for a long time. Google recommends at least a year; in practice we leave them indefinitely, because external links to the old URLs keep existing for years and a redirect costs next to nothing.

Questions to ask your agency before you sign

If you’re hiring someone for the redesign, SEO migration should appear explicitly in the proposal, with time set aside for it. A few questions tell you whether it’s being taken seriously:

  • How will you inventory the current URLs, and from which sources?
  • Who signs off the redirect map, and at what stage of the project?
  • Will redirects be tested automatically before and after launch?
  • Will titles, meta descriptions and copy be kept on the pages that bring in traffic?
  • Who monitors Search Console after launch, and for how long?

A vague answer (“we’ll add redirects”) isn’t necessarily bad faith, but it tells you the work isn’t planned. The effort mostly depends on the number of URLs and how far the new structure departs from the old one: a few hours for a brochure site that keeps its addresses, much more for an older site whose whole structure changes. Either way, it costs far less than several months of lost traffic.

FAQ

How long does it take to recover traffic after a redesign?

When redirects are right and content is kept, fluctuations usually settle within a few weeks, once Google has recrawled the site. A drop that lasts longer almost always points to a specific problem to track down: 404s, thinner content, a forgotten noindex.

Can we change domain at the same time?

You can, but it stacks two migrations and makes any drop harder to diagnose. When the schedule allows, we prefer to move domains first with the site unchanged, then redesign once things have settled.

Do images and PDFs need redirects too?

Yes for files that get traffic or links: a technical PDF or an image that ranks in Google Images can bring visits. Files with neither can safely be dropped.

Is a WordPress redirect plugin enough?

For most sites, yes, as long as you feed it a real redirect map and keep an eye on its 404 log. The plugin doesn’t replace the inventory or the testing; it only applies the rules you give it.

A redesign should improve your site without throwing away what it has already earned. We handle the whole migration, from URL inventory to post-launch monitoring. Tell us about your project.

Partager LinkedIn Facebook X WhatsApp
</>

webtestudio

Agence web : sites WordPress sur mesure, thèmes premium et logiciels SaaS.

Parler de votre projet →