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.
{
"redirects": [
{
"from": "http://127.0.0.1:8000/old-products/",
"to": "http://127.0.0.1:8000/products/",
"expectedStatus": 301,
"finalStatus": 200
}
]
}npx --yes sireg@1.1.0 check --config sireg.redirects.jsonsireg 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.