Site Migration Tool

Bulk 301 Redirect Rule Generator & Chain Validator

Paste legacy-to-new URL mappings to detect loops, self-redirects and duplicates, automatically flatten multi-hop chains to single-hop 301s, and export configs for Next.js, Vercel, NGINX, Apache and Cloudflare.

1 hop
Auto-flattens A → B → C chains to direct A → C
12+ mo
Google minimum retention window for 301 rules
5 formats
Next.js, Vercel, NGINX, .htaccess & Cloudflare CSV

1. Paste Redirect Pairs (Old → New)

One rule per line separated by ->, comma, tab or space. Multi-hop chains are automatically flattened to single-hop 301s.

Clean single-hop 301 map: 4 rules ready (1 multi-hop chain auto-flattened).

Automatic chain optimizations:

  • Flattened 2-hop chain: "/blog/technical-seo-audit-checklist-2024" now redirects directly in 1 hop to "/blog/technical-seo-audit-checklist".
// next.config.ts
async redirects() {
  return [
    {
      source: "/old-blog/seo-checklist",
      destination: "/blog/technical-seo-audit-checklist",
      permanent: true,
    },
    {
      source: "/blog/technical-seo-audit-checklist-2024",
      destination: "/blog/technical-seo-audit-checklist",
      permanent: true,
    },
    {
      source: "/pricing-legacy",
      destination: "/pricing",
      permanent: true,
    },
    {
      source: "/docs/v1/api",
      destination: "/docs/api",
      permanent: true,
    },
  ];
}

Frequently Asked Questions

Why should I flatten redirect chains before a site migration?
Every extra redirect hop adds network latency, consumes Googlebot crawl budget, and risks Googlebot abandoning chains longer than 5–10 hops—always map old URLs directly to their final HTTP 200 canonical in 1 hop.
How long should 301 redirects stay active after migrating URLs?
Google Search Central explicitly recommends keeping permanent 301/308 redirects in place for at least 12 months—and permanently if external backlinks still point to legacy URLs.
Should Next.js migrations use permanent: true (308) or vercel.json 301?
Google treats both HTTP 301 and HTTP 308 as equivalent strong permanent canonical signals; Next.js permanent: true emits HTTP 308 while vercel.json statusCode: 301 emits HTTP 301.

Primary Sources

Verified

Related Research Guides