Redirect dead Learn URLs that backlinks, assistants and crawlers still request

KT
4h ago
+6013-275

Dead Learn URLs that other sites link to, or that AI assistants and crawlers keep requesting, now redirect to the page that covers the subject today.

Changes

  • Fifth backlink batch (9 rules): the SEO team's remaining list and four more URLs that hold a live backlink.
  • Former Learn pages (68 rules): paths that existed in this repository's history and are still requested by AI assistants and crawlers. Each goes to the page that covers the subject today, or the closest parent section when none does.
  • /docs/agent/<path> addresses (302 exact rules): requested paths whose /docs/<path> page exists. No wildcard: a /docs/agent/* rule would turn about 1,500 other requested paths (mostly scanner probes) into redirects that end on a 404.
  • SNMP Traps: the section moved under Network Performance Monitoring with only its root redirected, so its 17 subpages answered 404. A bounded wildcard now covers them, and config/redirect-policy.json pins the full 18-route inventory, checked by scripts/verify-redirect-graph.js the same way as Network Flows. The one generated rule the wildcard covers is dropped from netlify.toml, as the ingest generator does.
  • &amp; authentication links: Okta SSO, SCIM, OIDC and the integrations index, linked with &amp;, were redirected to an address that still contained &amp; and answered 404. Four rules placed before the existing wildcard send them to the real pages.
  • Favicon: /favicon.ico and /img/favicon.ico go to the site icon (forum link previews request them).

The static section of netlify.toml mirrors static.toml.

Validation

  • build:netlify post-build gates pass: 4,318 redirects verified against the published routes (no chains, no shadowing, every target renders), 60 historical routes of relocated sections, rendered-link check clean, site gate clean against its baseline.
  • vitest run src/seo: 172 passed. Ingest redirect tests (test_legacy_redirect_gate.py, test_redirect_cleanup.py): 43 passed.

Summary by CodeRabbit

  • Bug Fixes
    • Added redirects from historical SNMP Traps URLs to their relocated documentation pages, including nested sections.
    • Added redirects for outdated documentation links, former Learn pages, and legacy agent documentation paths so they lead to current pages.
    • Added alternate URL redirects for authentication and integration documentation, including paths containing escaped ampersands.
    • Updated favicon URLs to point to the 32×32 favicon.