How-To
← All guidesWebsites & Domains

301 vs. 302 Redirect: Which Should You Use?

Understand permanent versus temporary web redirects.

Quick Answer

Use a permanent redirect for a lasting URL move and a temporary redirect when the original URL is expected to return.

Step by Step

  1. Decide whether the move is permanent or temporary.
  2. For a permanent move, use the platform's permanent redirect status, commonly 301 or 308.
  3. For a temporary move, use an appropriate temporary status, commonly 302 or 307.
  4. Preserve the destination path/query when required.
  5. Test the response and destination.

If That Doesn't Work

  • Search engines and browsers can cache permanent redirects.
  • Avoid chains of multiple redirects when one direct redirect will work.

Related Guides