A new website should bring more enquiries, not fewer. Yet redesigns are one of the most common reasons search traffic drops overnight. The cause is rarely the design. It's the URLs: old pages that ranked, earned links or sat in people's bookmarks now return errors, and the signals they built up are lost.
We went through this ourselves when we rebuilt agencoder.com this year, moving from an old WordPress site that had also been hit by spam pages to a new Next.js site. This is the process we followed and now use for clients.
1. Inventory every URL that matters
Start by listing the old URLs that have value. Pull them from the old XML sitemap, Search Console's pages and links reports, analytics landing pages and, if you have them, server logs. Include pages that get traffic, pages with external links, and files such as PDFs that people link to.
2. Map old URLs to new ones
Give each valuable old URL one destination: the new page that best matches its content. A service page should go to the matching service page, a blog post to the same post or its closest replacement. Google's guidance warns against sending unrelated pages to the homepage, which it can treat as a soft 404.
A redirect map is a simple spreadsheet: old URL, new URL, status code, notes. It becomes the checklist for testing and the record you'll need if traffic changes later.
3. Decide what should disappear
Not every old URL deserves a redirect. Thin tag archives, test pages and, in our case, thousands of spam URLs injected by an old hack, should simply be gone. For these we return HTTP 410 Gone with a noindex header. It tells search engines the removal is deliberate, and it avoids passing spam signals to real pages through redirects.
4. Use server-side permanent redirects
- Use 301 (or 308) redirects on the server, not JavaScript or meta refresh.
- Point each redirect straight at the final URL. Avoid chains like old → interim → new.
- Handle common variants: trailing slashes, uppercase letters, http to https and www to non-www, each in a single hop.
- Keep the redirect rules in code or server configuration under version control, so they survive future changes.
5. Update everything that points to old URLs
Redirects are a safety net, not the plan. Update internal links, canonical tags and structured data to the new URLs, publish a new XML sitemap with accurate last-modified dates, and update the links you control elsewhere, such as social profiles, directory listings and your Google Business Profile.
6. Launch-day and first-week checks
- Crawl the redirect map and confirm every old URL returns one 301 to the right page.
- Check that removed URLs return 410 or 404, not 200 with an error message.
- Confirm the new site isn't blocked by a leftover noindex tag or robots.txt rule from staging.
- Submit the new sitemap in Search Console and Bing Webmaster Tools. Bing and others also accept IndexNow pings.
- Watch Search Console's page indexing report and analytics landing pages daily for the first two weeks.
What to expect afterwards
Google says rankings can fluctuate while a moved site is recrawled, and that processing can take weeks for a medium-sized site. Keep the redirects in place for at least a year; there's little reason to ever remove them. If a high-traffic page loses visibility for more than a few weeks, check its redirect, its content compared with the old page, and whether internal links still point to it.
Error counts in Search Console can look alarming after a clean-up like ours, because Google keeps reporting removed URLs for a while. What matters is that the URLs you want are indexed and the ones you removed return the right status.



