Academy / SEO

SEO

301 and 302 redirects: how to keep them to a single hop

By Fernando BalcázarReviewed on 6 min read

The essentials

  • A 301 says “moved for good” and passes signals to the new address. A 302 says “temporary”.
  • One hop straight to the final address is ideal. The auditor warns at 2 and fails at 3 or more.
  • Each hop adds load time and spends crawl budget. Bots stop following after a few.
  • Internal links should point to the final address, not one that redirects.

301, 302 and friends

CodeWhen to use it
301Permanent change: new domain, new path, http to https
308Like a 301, but keeps the method; useful for forms and APIs
302 / 307Temporary detour: a promotion, a test, maintenance of a section

A 302 left in place for months ends up treated as permanent, but meanwhile the search engine is unsure which address to index. If the change is for good, use a 301 from the start.

Chains

A chain shows up when redirects pile up over the years. The typical case:

A 3-hop chain
http://yoursite.com/services
  → https://yoursite.com/services
  → https://www.yoursite.com/services
  → https://www.yoursite.com/services/

The fix is for every variant to go straight to the last address in one hop, and for the site’s links to use that final address.

How to fix them

  1. Audit the page: the auditor lists every hop with its code.
  2. Pick the final version: https, with or without www, with or without a trailing slash. Just one.
  3. Set up the server or CDN so any variant goes straight to that version.
  4. Update internal links, the sitemap and the canonical to use the final address.

Check it

Check your page’s redirects

Common mistakes

  • Redirecting everything old to the home page in a migration. Google treats it as a 404.
  • Loops, where A goes to B and B goes back to A. The page never loads.
  • Server and CMS rules at the same time that overlap and add hops.
  • Deleting a migration’s 301s the following year: external links still point to the old addresses.

ToolURL auditor →