Pre-migration URL safety net
migration_checkVerify all old-site URLs still work on a new host before migration, classifying OK, redirects, chains, and 404s to prioritize fixes by lost traffic.
Instructions
Before pointing a domain at a new (static) site, verify that every URL that matters on the old site still works on the new one. Collects old URLs from Search Console (pages with impressions in the period) and the old sitemap, rewrites each to the new host (e.g. a pages.dev preview), follows redirects, and classifies: OK (200 same path), REDIRECTED (301/302 to a 200 page), REDIRECT_TO_HOME (traffic likely lost), CHAIN (2+ hops), NOT_FOUND (404/410), ERROR. Results are sorted by old-site clicks so the costliest gaps come first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | 3daysAgo | |
| maxUrls | No | ||
| newHost | Yes | Host of the new site to test against, e.g. 'my-site.pages.dev' or 'new.example.com'. | |
| siteUrl | Yes | Search Console property, e.g. 'sc-domain:example.com'. | |
| includeOk | No | Include OK rows in the response (otherwise only problems and redirects). | |
| startDate | No | 180daysAgo | |
| concurrency | No | ||
| oldSitemapUrl | No | Old site's sitemap (index supported). Defaults to none: only Search Console pages are used. |