Links

302 Redirect

Definition

A temporary redirect that sends visitors to another URL while telling search engines the original URL will return.

302 Redirect, Essential Tools glossary. Comparison of a permanent 301 move versus a temporary 302 detour

A 302 redirect is a temporary redirect. It sends visitors to a different URL but tells search engines the original page will be back, so Google usually keeps the original URL in its index.

Quick answer: Use a 302 for short-term changes, like a page under maintenance, a seasonal promotion or an A/B test. For permanent moves, use a 301. Google says a temporary redirect is a weak signal that the target should be canonical, but long-lasting 302s may eventually be treated like permanent ones.

Key Takeaways

  • Temporary move: The original URL is expected to return.
  • Weak canonical signal: Google usually keeps the original URL.
  • Common by accident: Some plugins and servers default to 302.
  • Good for short-term needs: Maintenance, tests and promotions.
  • Check the status: Make sure you’re sending the code you intend.

302 vs 301

Feature302 Redirect301 Redirect
MeaningFound, temporaryMoved permanently
Canonical signalWeakStrong
URL shown in searchUsually the originalUsually the new one
Browser cachingNot cached by defaultCached by default
Best forShort-term changesPermanent moves

Google’s redirects guide describes temporary redirects as a weak signal that the redirect target should be canonical.

Why the Difference Matters

If you move a page permanently but use a 302, Google may keep showing the old URL and take longer to consolidate signals on the new one. That can slow down migrations.

Using a 301 for a temporary change has the opposite problem. Browsers cache it, and Google may swap the original URL out of results even though you plan to bring it back.

How to Use 302 Redirects Correctly

Step 1: Confirm the Change Is Temporary

Ask whether the original URL will return within a reasonable time.

Check: You have a clear end date or condition.

Step 2: Create the Redirect

Set it as a 302 or 307 in your redirect plugin or server.

Check: The redirect type is set explicitly.

Step 3: Test the Status Code

Run the URL through a redirect checker.

Check: The response shows 302 or 307.

Step 4: Keep the Original Page Ready

Leave the original page published or ready to restore.

Check: You can switch back quickly.

Step 5: Remove or Convert It Later

Remove the redirect when the change ends, or switch to a 301 if it becomes permanent.

Check: No forgotten 302s remain months later.

An Illustrative Example

An online shop redirects its main sale page to a “coming soon” page for two weeks before a big event. The team uses a 302 so the sale URL stays in Google’s index.

When the event starts, they remove the redirect and the original sale page returns, still ranking for its usual searches. Had they used a 301, browsers might have kept sending some visitors to the old “coming soon” page.

Myths vs Reality

  • Myth: 302s never pass signals. Reality: Google can treat long-lasting 302s like permanent redirects.
  • Myth: 302 and 301 are interchangeable. Reality: They send different signals.
  • Myth: Plugins always use 301. Reality: Some default to 302, so check.

Check Redirect Types

See whether a URL returns a 301, 302 or chain.

How to Track Results

Keep a short list of every temporary redirect with its start date and planned end date. Review it monthly so nothing turns into a forgotten long-term redirect.

In Search Console, URL Inspection shows which URL Google treats as canonical. If Google starts showing the target instead of the original during a long 302, that’s a sign it now sees the move as permanent.

Mistakes to Avoid

  • Using 302 for migrations: Use 301 for permanent moves.
  • Forgotten temporary redirects: Review them regularly.
  • Not checking defaults: Plugins and frameworks may use 302.
  • 302 loops during tests: Test redirect logic carefully.
  • Redirecting to unrelated pages: Keep destinations relevant.

FAQ

When Should I Use a 302 Redirect?

For temporary changes like maintenance, short promotions or testing.

Does a 302 Redirect Hurt SEO?

Not when used for temporary changes. Problems come from using it for permanent moves.

What Is a 307 Redirect?

A temporary redirect that keeps the original request method.

Will Google Treat a Long 302 as a 301?

It may, if the redirect stays in place for a long time.

How Do I Change a 302 to a 301?

Edit the redirect type in your plugin or server rule.

Does WordPress Use 302 by Default?

wp_redirect() defaults to 302 unless a status code is set.

Where to Go Next

Kinsta BFCM Deal