B2B Web Design2026-11-17

301 Redirects in Website Migration: The Complete Guide

A 301 redirect map is the difference between keeping your search rankings and losing them in a weekend. This guide covers URL inventory, the five rule categories every migration needs, pre-launch testing, the chain-and-loop traps and the 30/60/90-day monitoring routine.

B2B Web Design

What a 301 migration actually protects

A 301 tells search engines and browsers that a URL has moved permanently and that the new URL should inherit the old URL's signals. Done well, a migration looks like a quiet reshuffle: rankings hold, traffic dips briefly and recovers within two to four weeks. Done badly, it looks like a site that lost its history overnight, because thousands of pages return 404s, redirect to the homepage, or land on a soft-404 page that says nothing useful. The work is mostly inventory and mapping, not server configuration.

Permanent, temporary and the difference that matters

301 means permanent; 302 and 307 mean temporary. Use 301 for migrations, and never use 302 to test a change you intend to keep, because temporary redirects do not pass signals the same way and can persist in indexes for months. If you must keep an old URL alive for a campaign, use 302 deliberately and remove it on a known date. For a platform migration where you will run both sites in parallel briefly, 307 preserves the request method for form posts, which matters if legacy forms still submit to old endpoints.

Mapping every old URL before touching anything

Start with a complete URL inventory from three sources: your XML sitemap, your server access logs from the last twelve months, and any backlink or analytics export that lists pages receiving traffic. Merge them into one sheet with columns for old URL, status code now, monthly visits, inbound links and intended new URL. Expect the inventory to be two to five times larger than your sitemap, because sitemaps omit paginated, filtered and legacy pages that still receive traffic. Never delete or redirect a URL that is not in the inventory.

Five categories that always need a rule

Every migration needs an explicit rule for five categories. One-to-one pages map to their exact new equivalent. Section pages map to the new section landing page. Paginated listings map to the new listing's first page. Filtered and parameter URLs either redirect to the unfiltered equivalent or return 410 if the content is genuinely gone. Deleted pages with no equivalent return 410 rather than redirecting to the homepage, because a homepage redirect is a soft 404 that wastes crawl budget and confuses users. Write these rules down before mapping, or you will make inconsistent decisions across thousands of URLs.

Testing redirects before launch

Test on staging with the real URL list, not a sample of ten. Automate it: a script that requests each old URL, follows redirects, and reports the final destination and status code. Flag four outcomes for review - redirects that land on the homepage, chains longer than one hop, redirects to a 404, and loops. Fix these before DNS cutover, because after cutover you are debugging in production traffic. Also verify that canonical tags and internal links in the new site point to the new URLs, not to the old ones through redirects.

The chain, loop and soft-404 traps

Three traps account for most migration damage. A chain happens when old URL redirects to an intermediate URL that redirects again; each hop loses a little signal and adds latency, so collapse everything to a single hop. A loop happens when two rules point at each other, and the page never loads. A soft-404 happens when a URL returns 200 but shows an empty or generic page; search engines treat it as a missing page with worse diagnostics. Check for all three programmatically, and re-check after every change to the redirect configuration, because a single new rule can create a chain across a whole section.

Post-migration monitoring: 30, 60 and 90 days

Monitor in three windows. At day 30, compare indexed page count, organic sessions and top-query rankings against the pre-migration baseline; expect a dip of ten to thirty percent in sessions that recovers. At day 60, check that new URLs are indexed and that old URLs are dropping out of the index, and review server logs for 404 spikes. At day 90, confirm recovery to baseline and identify any section still underperforming. Keep the redirect rules in place for at least twelve months, ideally permanently, because external links and old bookmarks do not disappear on your schedule.

What to preserve in the new URL structure

Preserving URL structure reduces migration risk dramatically. Keep the same directory pattern, the same slugs where possible, and the same trailing-slash and case conventions. If the new platform forces different paths, map one-to-one rather than collapsing sections. Preserve the language prefix structure for multilingual sites, and make sure each language variant redirects to the same language rather than to the default. Also preserve your sitemap and robots.txt behaviour, because a migration that accidentally blocks crawling is far more damaging than any individual redirect mistake.

Get a free migration risk review

Planning a migration and want a second pair of eyes on the redirect map? Book a free review with our team. We will audit your URL inventory, check your rule categories and run a chain-and-loop test on staging before you cut over. You leave with a fix list ranked by traffic risk.

Want This Applied to Your Website?

Get a free quote and get a practical assessment of your situation.

Get a Free Quote