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.
- Old URL ranksHas links and history
- 302 sentSays 'temporary'
- Old URL kept in indexSearch engines expect it to return
- 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.
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.
Run a header request
In a terminal run
curl -I https://example.com/old-page. Look at the first line:HTTP/2 301is permanent,HTTP/2 302is temporary. Thelocation:line shows the target.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.
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.
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.
$ curl -I https://example.com/old-page
HTTP/2 302
location: https://example.com/new-pageHow 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.
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.
Edit the HTTP code
Change the code from 302 (Found) to 301 (Moved Permanently) and save.
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.
Open URL redirects
Go to Online Store > Navigation > View URL Redirects.
Use the built-in redirects
Shopify URL redirects are permanent (301). If you see a 302, it likely comes from a theme, an app or Liquid code, so check those.
Review apps and theme
Look in installed redirect or geolocation apps and in theme files for custom redirect logic and change it to a permanent redirect or remove it.
Open 301 redirects
Go to Site settings > Hosting > 301 redirects.
Add the rule
Enter the old path and the new path and save. Publish the site. Webflow redirects here are 301s.
Open the redirect manager
Go to Marketing & SEO > SEO > URL Redirect Manager.
Create a rule
Add the old and new URL. Wix creates a 301 redirect.
Open URL mappings
Go to Settings > Developer Tools > URL Mappings (the location can differ by version).
Use 301
Write each rule as
/old -> /new 301. Use 301 and not 302 for permanent moves.
Find the redirect
Check the URL redirects or domain settings for your funnel or website and look for the rule.
Pick permanent
If the redirect type is selectable, choose permanent (301). If not, test with curl; if it still returns 302, move the redirect to your DNS or hosting layer.
Apache (.htaccess)
Replace
Redirect 302orR=302withRedirect 301orR=301.Nginx
Replace
return 302orredirect;withreturn 301orpermanent;, then reload Nginx.Application code
Set the status in your framework's redirect call, for example
res.redirect(301, url)in Express.
# Before
Redirect 302 /old-page https://example.com/new-page
# After
Redirect 301 /old-page https://example.com/new-pagelocation = /old-page {
return 301 https://example.com/new-page;
}How to confirm it's fixed
curl -Ion the old URL returns 301 or 308, not 302 or 307- The
locationheader 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
- 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.
Related issues
- SEO-081Redirect chains of 3+ hopsFix guide
- SEO-083http not redirecting to httpsFix guide
- SEO-086Meta refresh or JavaScript redirects instead of 301Fix guide
- SEO-087Redirects drop query strings (UTMs, gclid)Fix guide
- SEO-089Internal links point to redirecting URLsFix guide
- SEO-090Sitemap lists redirecting URLsFix guide