Skip to content

How to redirect without breaking

Use 301 for permanent, 308 when preserving method, redirect to the final URL, log every redirect, and audit the chain every quarter.

Redirects that age well

  1. 301 for permanent, 302 for temporary

    If the move will last more than a few months, 301. If uncertain, 302 and revisit.

  2. Redirect to the final URL

    Never redirect A→B and B→C. Redirect A→C directly. Chains dilute ranking.

  3. Log every redirect

    A redirects.yaml in the repo makes changes auditable and revertible.

  4. Audit every quarter

    Run curl -sI https://example.com/old | grep -i location on every redirect in your map. Chains and loops appear quietly.