Skip to the content

// seo-check.mjs --redirects old-urls.csv

Move the site without losing what it earned.

Give it the old URLs as a list, an old,new CSV or the old sitemap. Every one should 301 in one hop to a live, indexable page that is its own canonical. Pick a row to follow its hops.

/pricing.html1 hop
  1. /pricing.html302
  2. /pricing200
P2 redirect.temporary

Uses a temporary redirect (302) for a permanent move; use 301 or 308 so search engines move the old URL’s signals.

An example migration · 9 old URLs · 4 P1 · 3 P2 · 1 P3 · 1 clean
Old URLWhat happensGradeCheck
/blog/old-post 301 → /blog/new-post 200 · indexableOK(no finding)
/pricing.html 302 → /pricing 200P2redirect.temporary
/features 301 → /product 301 → /product/ 200P2redirect.chain
/team 301 → / 200 · homeP2redirect.to-home
/docs/v1 200P1redirect.missing
/careers 301 → /jobs 404P1redirect.broken-target
/shop/lamp 301 → /shop/lamp-2 200 · noindexP1redirect.target-noindex
/a 301 → /b 301 → /a …P1redirect.loop
/spring-sale 410 GoneP3redirect.gone
11
redirect checks
5 of them P1: missing, looping, broken, wrong or noindex targets
1
hop, permanent
301 or 308 straight to the final page
3
ways to give old URLs
a list, an old,new CSV, or the old sitemap