sireg
Browse documentation

Verify legacy redirects

Catch lost redirects after a migration and confirm old links land on the intended page.

Keep retired URLs in a config alongside the new site. For a preview check, use preview or local URLs in the redirect expectations. Transforms for discovered sitemap URLs leave these entries as written.

JSON
{
  "redirects": [
    {
      "from": "http://127.0.0.1:8000/old-products/",
      "to": "http://127.0.0.1:8000/products/",
      "expectedStatus": 301,
      "finalStatus": 200
    }
  ]
}
Shell
npx --yes sireg@1.1.0 check --config sireg.redirects.json

sireg checks the first redirect status, follows the chain, and checks the final URL and status. Run this against a server that applies the redirect rules used in production. A static file server cannot exercise redirects configured only at the CDN.

See the redirects reference for redirect patterns and status rules.