The middleware serves matching redirects (with normalisation, chain-following A→B→C, and loop protection) and logs every 404. Logged 404s appear on the SEO Health page with a one-click “Create redirect” link that pre-fills the source path. Rules are cached for an hour and the cache is busted automatically on create/edit/delete.Pair redirects with Internal Linking and Keyword Cannibalization reports on the same SEO Health dashboard to fix crawl and ranking issues in one place.