Flatten the redirect chain

2026-07-06 · updated 2026-09-05

Problem

Reaching the final URL takes more than one redirect hop. The most common chain is http → https → www → apex — three requests before any content.

Why it matters

How to fix

  1. Decide the canonical origin once (e.g. https://example.com).
  2. Make every variant redirect directly to the canonical URL in a single 301.
  3. Update internal links to point at the canonical URL so no redirect fires at all.
  4. Verify: curl -sIL http://www.example.com | grep -i location — one Location line is the goal.