Website redesign without losing your Google rankings
By Craig Burdett, , 4 minute read
A new design goes live. It looks fantastic. Three weeks later the inquiries have dried up, and Search Console shows a cliff where your traffic used to be. This is one of the most common ways small businesses lose money online, and almost all of it is avoidable.
The thing to understand is simple. Google ranks addresses, not designs. Every page that brings you visitors has built up its standing at a particular URL, through links, history and the content on it. Change the URL without telling Google where it went, and that standing starts again from nothing.
I’ve just planned this for my own site, which is moving from pages like /portfolio/thcr.html to /work/thcr/, so here’s the process exactly as I’m running it.
Take an inventory before you change anything
You need a complete list of the URLs you have today, and which ones matter. Three sources between them catch almost everything.
- A crawl of the current site. A crawler such as Screaming Frog follows every link and lists every page it finds, including the ones you forgot existed.
- Search Console’s Pages and Performance reports. These show the URLs Google has indexed and the ones that actually get clicks. Set the date range to the full 16 months it keeps.
- Your backlinks. Search Console’s Links report lists the pages other sites link to. Those links are some of the most valuable things your site owns, and each one points at an exact URL.
Merge them into one spreadsheet. That spreadsheet becomes your redirect map.
Map every old URL to its closest new one
For each old URL, write down the new page that best replaces it. One to one, wherever possible. This is where most redesigns go wrong, in one of two ways.
- No redirects at all. Every old link and search result now lands on an error page.
- Everything redirected to the home page. It feels safe, but Google generally treats a redirect to an irrelevant page as if the page had been deleted. The visitor who wanted your pricing page doesn’t want your home page either.
If a page genuinely has no replacement, let it return a 404 or 410. That’s an honest answer, and Google handles it fine.
Use permanent redirects (301 or 308), point each one straight at its final destination, and avoid chains where A redirects to B which redirects to C. Then update your own internal links to point at the new URLs directly, so you’re not relying on redirects inside your own site.
Write the redirects, and test the odd cases
On an Apache server, most redirects are one line each in .htaccess. Patterns save writing hundreds by hand.
RewriteEngine On
RewriteRule ^portfolio\.html$ /work/ [R=301,L]
RewriteRule ^portfolio/([a-z0-9-]+)\.html$ /work/$1/ [R=301,L]
Watch out for the cases that look trivial. I wanted /index.html to redirect to /. The obvious rule creates an infinite loop, because when someone asks for /, the server internally looks up index.html, which triggers the redirect, which asks for / again. The fix is to check what the visitor originally requested rather than what the server is currently serving.
RewriteCond %{THE_REQUEST} \s/+((?:[^\s?]*/)?)index\.html[\s?]
RewriteRule ^ /%1 [R=301,L]
Test every redirect in the spreadsheet before launch. A short script that requests each old URL and checks it lands on the right new one, in one hop, takes minutes to write and catches the mistakes you’d otherwise find from a client’s email.
Keep the staging site out of Google
While you build the new site, it lives somewhere, such as a staging address or a subdomain. If Google finds it, you can end up with two copies of your site competing with each other.
A robots.txt file isn’t enough. It asks crawlers not to visit, but a page that’s linked from elsewhere can still appear in results. Put the staging site behind a password instead. HTTP authentication takes two minutes to set up and nothing gets past it.
And when you launch, check for the opposite problem. WordPress has a “Discourage search engines from indexing this site” setting that’s often ticked on staging. Copy that site to production without unticking it and you’ve asked Google to drop your entire site. I check for a stray noindex on launch day, every time.
Don’t redesign the content that ranks
A redesign is a tempting moment to rewrite everything. Be careful with the pages that already rank well. If a page is on the first page of results for something valuable, its words are part of why. Improve the design around it, fix what’s genuinely wrong, but don’t strip out the headings and paragraphs Google has been rewarding. Change one big thing at a time so you can tell what worked.
Launch day and the weeks after
- Submit the new XML sitemap in Search Console.
- Use URL Inspection on your most important pages to confirm Google sees the new versions, with the right canonical URL.
- If you’ve changed domain, not just URLs, use Search Console’s Change of Address tool as well.
- Watch the Pages report for new 404s every few days for the first month, and add redirects for anything you missed.
- Keep the redirects in place for at least a year. Google recommends that as a minimum, and there’s rarely a good reason to remove them at all.
Expect some movement in the first few weeks while Google recrawls everything. If the redirects are right, it settles back, and often higher than before, because the new site is faster and better organized.
| Step | Done when |
|---|---|
| Inventory | Every crawled, indexed and linked URL is in one spreadsheet |
| Redirect map | Every old URL has a new URL or a deliberate 404 |
| Redirects tested | Every old URL reaches the right page in one hop |
| Staging protected | Staging asks for a password |
| Launch checks | No stray noindex, sitemap submitted, key pages inspected |
| Monitoring | 404s reviewed weekly for the first month |
Planned like this, a redesign stops being a gamble with your search traffic. The day it launches, the people who found you last week can still find you, and they arrive on a better site.
Comments
No comments yet. Questions and corrections are welcome.