Skip to content
FunnelGuard

Fix guide by FunnelsGuard

302 redirect used for a permanent move: how to find and fix it

SEO-085Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

When a browser or crawler asks for a URL, the server can answer with a redirect and a status code. A 301 or 308 means "moved permanently". A 302 or 307 means "moved temporarily, keep using the old address".

This issue appears when you used a 302 for a move that is not temporary: a site migration, a changed URL slug, a switch from http to https, or a non-www to www move. Many plugins, themes and hosting panels default to 302, so it is easy to do by accident.

Why it costs you leads or sales

Search engines treat a 302 as a hint that the old URL is still the real one. Google says it can work out that a long-lived 302 is really permanent, but that is not guaranteed and can take time. In the meantime the old URL can stay in search results, and ranking signals may be slower to move to the new page.

For you that means visitors and AI assistants may keep landing on or citing the old address. If the old address is later removed, they hit an error instead of your offer. Other tools that cache redirects, such as some link checkers and crawlers, also treat a 302 as not final.

How a 302 on a permanent move hurts
  1. Old URL ranksHas links and history
  2. 302 sentSays 'temporary'
  3. Old URL kept in indexSearch engines expect it to return
  4. New page slow to rankSignals move late or not at all

The old URL keeps being treated as the main address, so the new page may be credited late.

Visits reaching the new page after a moveExample numbers
Visits reaching the new page after a move (example)With 302: 45 %; With 301: 90 %034694590With 302With 301%

Example: share of organic visits landing on the new URL four weeks after a move. Numbers are illustrative, not measured.

How to check if your site has it

You need to see the status code of the first response, not just where the browser ends up. A browser hides this, so use one of these methods.

Check a URL's redirect type
  1. Run a header request

    In a terminal run curl -I https://example.com/old-page. Look at the first line: HTTP/2 301 is permanent, HTTP/2 302 is temporary. The location: line shows the target.

  2. Or use browser dev tools

    Open DevTools, go to the Network tab, tick Preserve log, load the old URL and click the first request. The Status Code shows 301, 302, 307 or 308.

  3. Crawl the whole site

    Run a crawler such as Screaming Frog or Sitebulb and filter the Response Codes report for 302 or 307. Review each one and decide if the move is permanent.

  4. Check old URLs from your migration

    List every URL that was changed or moved and test each one. Pay special attention to http to https, www, trailing slash and renamed slugs.

Example output of a temporary redirectbash
$ curl -I https://example.com/old-page
HTTP/2 302
location: https://example.com/new-page

How to fix it

The fix is to change the status code to a permanent one. Use 301 (the common choice) or 308 (permanent, and it also keeps the request method). Keep the same target URL. The steps depend on where the redirect is set.

Change a 302 to a permanent redirect
  1. Open your redirect plugin

    In plugins such as Redirection or Rank Math, find the rule for the old URL. In Redirection it is under Tools > Redirection.

  2. Edit the HTTP code

    Change the code from 302 (Found) to 301 (Moved Permanently) and save.

  3. Check theme and code

    If there is no plugin rule, search your theme or custom code for wp_redirect( calls. The default status is 302, so pass 301 as the second argument.

Apache: permanent redirecthtaccess
# Before
Redirect 302 /old-page https://example.com/new-page

# After
Redirect 301 /old-page https://example.com/new-page
Nginx: permanent redirectnginx
location = /old-page {
    return 301 https://example.com/new-page;
}

How to confirm it's fixed

Confirm checklist
  • curl -I on the old URL returns 301 or 308, not 302 or 307
  • The location header points to the intended final URL
  • The final URL returns 200 with no further redirects
  • Your crawler's 302 report no longer lists the URL
  • Update internal links and the sitemap to the new URL
  • In Google Search Console, use URL Inspection on the new URL and check it is indexed

How to prevent it happening again

Prevention
  • Default to 301 in redirect plugins, rules and code, and use 302 only on purpose
  • Add a redirect status check to your migration checklist
  • Crawl the site after every redesign, slug change or domain move
  • Review redirect rules whenever a plugin, theme or app is added or updated
  • Remove temporary redirects once the campaign or test ends

How FunnelGuard handles this

FunnelGuard detects this only partly. When its robot visitor loads your pages, it records the redirect chain: each hop and the URL it ends on. It does not judge the status type, so it will not tell you that a hop was a 302 instead of a 301.

To cover the rest by hand, take the redirecting URLs from your FunnelGuard chain and check each with curl -I or your browser's Network tab. Then change any 302 on a permanent move as described above. A crawler report is the quickest way to check many URLs at once.

FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card), and every paid plan has a 3-day free trial. A free read-only website audit is also available.

Questions people ask

What is the difference between a 301 and a 302 redirect?

A 301 says a page has moved permanently, so search engines should use the new URL. A 302 says the move is temporary and the old URL should be kept. Use 301 for permanent moves and 302 only for short-term ones.

Does a 302 redirect hurt SEO?

It can. Google may keep the old URL in its index and be slower to credit the new one. Google says it can treat a long-lasting 302 as permanent, but you should not rely on that, so use a 301 for permanent moves.

How do I check if a redirect is a 301 or 302?

Run curl -I on the URL and read the first line, or open your browser's DevTools Network tab with Preserve log on and click the first request. The Status Code shows 301, 302, 307 or 308.

Should I use 301 or 308 for a permanent redirect?

Both are permanent. 301 is the most common and works everywhere. 308 is the same but keeps the request method, which matters mainly for form posts and APIs.

Why is my old URL still showing in Google after a redirect?

Common causes are a 302 that signals a temporary move, a recent change that Google has not recrawled yet, or internal links and sitemaps that still point to the old URL. Switch to a 301, update links and the sitemap, and request indexing of the new URL.

How do I change a 302 to a 301 in WordPress?

In your redirect plugin, such as Redirection, edit the rule and change the HTTP code from 302 to 301. If there is no plugin rule, check your theme for wp_redirect() calls and pass 301 as the status.

Does FunnelGuard detect 302 redirects?

Only partly. FunnelGuard records the redirect chain, but it does not judge whether a hop is a 301 or a 302. You need to check the status type yourself with curl or a crawler.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Chain recorded; status type not judged.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.