Pre-migration URL safety net
migration_checkTest old URLs from Search Console, sitemaps, and Internet Archive against the new host to classify redirects, broken pages, and errors for a pre-migration SEO check.
Instructions
Pre-migration check: collect old URLs from Search Console (pages with impressions), the old sitemap and optionally the Internet Archive, test each on the new host, classify OK / REDIRECTED / REDIRECT_TO_HOME / CHAIN / NOT_FOUND / ERROR, sorted by old-site clicks. Search Console only remembers 16 months of URLs that got impressions, so on an old site turn on includeWayback (and raise maxUrls) to recover the rest.
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 | ||
| waybackLimit | No | Max archived URLs to request. | |
| oldSitemapUrl | No | Old site's sitemap (index supported). Defaults to none: only Search Console pages are used. | |
| includeWayback | No | Also pull historical URLs of the domain from the Internet Archive CDX API (free, no key). Finds pages Search Console has dropped; these have no click data, so raise maxUrls. | |
| waybackFromYear | No | Only captures from this year on, e.g. 2015, to skip a long-gone version of the site. |