301 redirect map for SEO redesigns, keep rankings without a domain move (2026)

301 redirect6 min readNovember 27, 2026

Author: DevStudio.it

TL;DR

A redesign or URL structure change is usually not a full domain move. You need a 301 redirect map: old path → new path → status → priority, then ship those rules at the edge or in Next.js. Keys: 1:1 where content matches, no homepage dumps, no A→B→C chains, and 4-8 weeks of GSC monitoring. Below: how to collect URLs, prioritize, implement in App Router / middleware, and verify after deploy.

Who is this for

  • Companies redesigning services, blog, or /services/... IA on the same domain
  • Next.js teams renaming slugs without changing the host
  • SEO and marketing protecting organic traffic after launch
  • Agencies handing over a site with legacy paths from GSC / crawls
  • Owners seeing a spike of 404s in Search Console after go-live

Keyword (SEO)

301 redirect map, seo redesign redirects, nextjs url migration, 301 without traffic loss, redirect map 2026, next.js middleware redirects

Page-level 301 vs domain migration

Scenario What you do Common mistake
Redesign / new IA, same domain Path → path map Everything to /
CMS change (WP → Next), same domain Map + canonical + sitemap Leaving 302s in production
Hosting change, same URLs DNS + cert, no slug map needed Accidental slash / www drift
Domain move (old → new host name) Separate playbook (host + GSC Change of Address) Treating it like slug remaps only

This guide is about page-level redirects: example.com/old-offer → example.com/en/services/new-name. Full domain moves are a different project.

Where to get the old URL list

Collect sources and dedupe (slash, www, UTM):

  1. Google Search Console → Pages / indexed URL export
  2. Crawl (Screaming Frog, Sitebulb): 200s, titles, depth
  3. Analytics (GA4): landing pages with sessions over 6-12 months
  4. Backlinks (GSC Links, Ahrefs/Majestic if you have them): external links = highest priority
  5. Old XML sitemap if still available
  6. CMS / Branchly: published case studies and blog slugs
Priority Criterion Action
P0 Backlinks + organic traffic Exact 301, Inspection check
P1 Top rankings / money pages 301 + update internal links
P2 Blog / cases with traffic 301 or intentional 410
P3 Thin / old campaigns Nearest topic 301 or 410

What a good map looks like (spreadsheet)

Columns worth having from day one:

Column Example Why
old_path /offer/websites Source
new_path /en/services/web-development Target
http_status 301 Never leave 302 forever
match_type exact / prefix Children included or not
priority P0 Test order
notes “old Ads landing” Team context
verified GSC OK After deploy

Mapping rules:

  • 1 old URL → 1 new URL (closest topical match)
  • Do not send whole sections to the homepage “because we are unsure”
  • Avoid A→B when B already redirects to C (collapse to A→C)
  • Locale: map into the correct language path, not “default EN for everything”
  • Trailing slash: one convention, aligned with next.config

Next.js, where to keep the rules

For dozens or hundreds of paths, prefer edge / CDN / hosting (DevStudioIT Cloud) over a huge JS list. Keep middleware for locale logic and exceptions.

Small map in next.config

// next.config.ts
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  async redirects() {
    return [
      {
        source: '/offer/websites',
        destination: '/en/services/web-development',
        permanent: true, // 301
      },
      {
        source: '/blog/:slug',
        destination: '/en/blog/:slug',
        permanent: true,
      },
    ];
  },
};

export default nextConfig;

permanent: true = 301. false = 302. For SEO migrations, use 301 unless you intentionally need a temporary address.

When middleware helps

  • Cookie / experiment conditions (be careful with SEO)
  • Adding a locale prefix when the old site had none
  • Blocking legacy preview URLs

Do not hardcode hundreds of if branches in middleware. Generate from the sheet or serve rules at the edge.

Chains, loops, soft 404s

Problem Symptom Fix
Chain A→B→C Slower crawl, weaker signals A→C directly
Loop A↔B Browser / bot errors One winning rule
301 to a 404 page Soft 404 in GSC Fix target or use 410
Bulk 301 to homepage Intent mismatch, ranking drop Remap by topic
302 instead of 301 Equity transfer is unreliable Make it permanent

After deploy on DevStudioIT Cloud, curl -I 20-50 P0 URLs: expect 301 + exact Location:, then 200 on the target.

Redirects are a safety net. Sources of truth after migration:

  1. Nav, footer, breadcrumbs point to new URLs
  2. Sitemap lists only canonical 200s (no legacy paths)
  3. Case studies and CTAs in Branchly use new slugs
  4. Ads / email campaigns: new destinations first (301 as backup)

Launch checklist (7-14 days)

  1. Export GSC + crawl + top GA4 landings
  2. Spreadsheet with P0-P3 priorities
  3. SEO + content review (does the target make sense?)
  4. Implement edge / redirects() / middleware exceptions
  5. Staging: P0 curl + browser checks
  6. Prod deploy + submit new sitemap in GSC
  7. URL Inspection for 10-20 critical old URLs
  8. Monitor 404 / “Not found” in GSC for 4-8 weeks
  9. Add missing 301s from the 404 report (do not guess in bulk)
  10. Remove leftover 302s and collapse chains

Common mistakes

  1. Everything to /: Google and users lose intent
  2. Leaving 302s “while we still tweak”
  3. No spreadsheet: rules only in a developer’s head
  4. Client-side only redirects (JS): bots and social crawlers miss them
  5. Old sitemap still submitted without refresh
  6. Overbroad prefix rules eating valid new paths
  7. Ignoring backlinks: P0 without 301 = equity loss

FAQ

Is canonical enough instead of 301?

No. Canonical is an indexing hint for similar content. When the URL changes, users and external links need an HTTP 301.

What about URLs whose content we deleted?

If there is no sensible successor: 410 Gone (or a deliberate 404) instead of 301 to the homepage. Honest absence beats a misleading dump.

How long should old 301s stay?

Years, not weeks. Bookmarks and backlinks live a long time. Do not turn the map off after rankings “stabilize”.

Is one wildcard rule enough?

Rarely. Wildcards help for simple prefix moves (/blog/:slug → /en/blog/:slug). Service renames need 1:1 rows in the map.

CTA

Planning a redesign and worried about organic drop? We will build the 301 map, ship it at the edge, and run the GSC checklist.

Related posts

Orphan pages and crawl depth, internal linking for business sites (2026)
5 min read
URL structure for service websites SEO, hubs, slugs, and pl/en/de locales (2026)
5 min read
Soft 404 and thin content in Next.js, diagnosis, HTTP status, and SEO fixes (2026)
5 min read

About the author

We build fast websites, web/mobile apps, AI chatbots and hosting setups — with a focus on SEO and conversion.

Recommended links

From theory to production — Branchly, our hosting stack and shipped work.

Like how we think? Let's build something together.

Start project configuration