301 vs 302 Redirects & Redirect Chains: The Complete Guide
An HTTP redirect is a server response that tells a browser or crawler "the content you asked for is actually somewhere else" — and which status code it uses (301, 302, or a handful of less common variants) changes how search engines treat the move, not just how the browser behaves. This guide covers exactly when to use which redirect type, how redirect chains and loops actually happen, how many hops search engines will follow before giving up, and how much ranking value genuinely transfers.
301 vs 302: the difference at a glance
A 301 redirect says a page has moved for good; a 302 says it has moved for now and will come back. That one difference decides which URL search engines keep in their index and how long browsers remember the redirect.
| 301 Moved Permanently | 302 Found | |
|---|---|---|
| What it tells crawlers | The old URL is gone; use the new one from now on | The old URL is still the real one; this is a detour |
| URL Google indexes | The new URL replaces the old one | Usually the original URL stays indexed |
| Ranking signals | Consolidate on the new URL | Stay with the original URL while the redirect looks temporary |
| Browser caching | Cached by default, sometimes for a long time, so a mistake is slow to undo | Not cached unless the response's headers say so |
| Use it for | Domain changes, HTTP to HTTPS, new URL structures, merged or retired pages | A/B tests, short promotions, maintenance pages, out-of-stock items coming back |
| Common mistake | Using it for a move you may reverse | Leaving it in place for a move that is really permanent |
If you're not sure, ask whether the old URL should ever come back. If it shouldn't, use a 301. Google has said a 302 left in place for a long time may eventually be treated like a 301, but a 301 sends the right signal from the start. To see which one a URL actually returns, run it through the Redirect Chain Checker, which shows the status code of every hop.
The redirect status codes, and what each one actually communicates
- 301 Moved Permanently — the resource has permanently moved to a new URL. Search engines transfer ranking signals to the new URL and update their index over time to reflect the new address as the canonical one.
- 302 Found (Temporary Redirect) — historically ambiguous about whether the method (GET/POST) should be preserved, but in practice treated by search engines as "this move is temporary." The original URL tends to stay indexed, since engines expect the content to come back at its original address.
- 307 Temporary Redirect / 308 Permanent Redirect — newer, stricter versions of 302/301 that explicitly guarantee the request method and body are preserved on the redirect (a 301/302 technically allow a client to switch a POST to a GET). Less commonly seen in general web SEO work, but correct where method preservation actually matters, like API redirects.
| Code | Meaning | Method/body preserved? | Search engine treats it as |
|---|---|---|---|
| 301 | Moved Permanently | Not guaranteed | Permanent — transfers ranking signals |
| 302 | Found (temporary) | Not guaranteed | Temporary — keeps original URL indexed |
| 307 | Temporary Redirect | Guaranteed | Temporary |
| 308 | Permanent Redirect | Guaranteed | Permanent |
The mistake that costs the most in practice is using a 302 for a move that's actually permanent. Because a 302 signals "temporary" to search engines, they're slower to fully replace the old URL in their index with the new one — the exact opposite of what you want when consolidating URLs after a migration or restructure.
Redirect chains: why every extra hop is pure cost
A redirect chain is simply more than one redirect stacked in sequence — URL A redirects to B, which redirects to C, before the browser or crawler finally reaches real content. Each hop in the chain adds a full network round-trip of latency for a human visitor, and a separate fetch a crawler has to make before it even reaches the actual page. Google's crawlers follow up to 10 redirect hops by default, and for a robots.txt file specifically, at least 5 hops before treating the file as missing. The risk starts well before either limit, though: a long enough chain makes it a real possibility the destination page never gets crawled at all.
Chains accumulate almost always the same way: a migration adds a redirect (old URL → new URL), then a later migration adds another (new URL → newer URL) without ever going back to point the original URL directly at the final destination. Each individual redirect made sense in isolation; stacked together, they form a chain nobody planned. The fix is always the same: collapse the chain so every old URL points directly at the final, current destination in one hop. To find out how long a chain already is, paste the old URL into a free redirect chain checker: it lists every hop with its status code and response time, so you can see which redirect to remove first.
How chains form without anyone noticing
Migrations are the obvious source, but the most common chain on the web comes from URL normalization rules that each run as a separate redirect. A site that forces HTTPS, forces www and adds a trailing slash can turn one old link into three hops:
http://example.com/pricing
→ 301 https://example.com/pricing (force HTTPS)
→ 301 https://www.example.com/pricing (force www)
→ 301 https://www.example.com/pricing/ (add trailing slash)
→ 200
Each rule is correct on its own; the problem is that they fire one after another. Combine them so any variant goes straight to the final form in a single 301, and point internal links, canonical tags and the sitemap at that final URL so most visitors never hit a redirect at all. Other quiet sources of chains: a CMS that redirects when a page's slug changes, on top of a redirect someone added by hand; a CDN or host rule stacked on an application rule; and tracking or short links that redirect to a URL that has since moved.
How to audit your chains
- Collect the URLs that still receive traffic or links: your old migration map, URLs with external backlinks, internal links in templates and navigation, and the "Page with redirect" list in Search Console's Pages report.
- Trace each one: run it through the redirect checker to see every hop, with its status code and response time.
- Flag the problems: any chain with more than one hop, a 302 where the move is permanent, a slow hop, a loop, or a chain that ends in a 404 or an unrelated page.
- Fix at the source: point each old URL directly at its final destination in one rule, and delete rules that are no longer reached.
- Update what you control: change internal links, canonicals and sitemap entries to the final URL, so redirects only serve old external links.
- Re-check after deploying: trace the same list again, since server, CDN and CMS rules can interact in ways that only show up live.
Redirect loops: the failure mode that blocks access entirely
A loop is a chain that eventually points back to a URL it already visited — A → B → A, or a longer cycle. Unlike a slow chain (which still eventually resolves), a loop never resolves. Browsers detect the repetition and stop with an error like "too many redirects" instead of ever loading anything. Loops almost always come from a leftover rule from an earlier migration that was never removed once a newer, conflicting rule was added on top of it — tracing the exact hop-by-hop sequence is the only reliable way to find which specific rule is pointing backward.
Example of the two-line rule pattern that creates one:
# Old rule from a past migration — never removed
Redirect 301 /old-page /new-page
# New rule added later, pointing the wrong direction
Redirect 301 /new-page /old-page
WordPress: fixing "too many redirects" after a migration or SSL change
On WordPress, a loop right after moving hosts or switching to HTTPS almost always has one of three causes. Check them in this order, and clear your browser cache between attempts, because browsers cache 301s and can keep replaying an old loop after it's fixed.
- The WordPress Address and Site Address don't match the real URL. How to recognize it: the loop starts right after the move or SSL switch, and tracing the URL shows it bouncing between the
http://andhttps://versions, or between www and non-www. The fix: in Settings → General, set both WordPress Address (URL) and Site Address (URL) to the exact final form, such ashttps://www.example.com. If you can't reach the dashboard, set the same values with theWP_HOMEandWP_SITEURLconstants in wp-config.php, which override the database values. - A caching or SSL plugin is forcing a redirect that fights the server's own rule. How to recognize it: the loop started after a plugin was installed or a setting like "force HTTPS" was turned on, and it stops when you rename that plugin's folder in
wp-content/pluginsover FTP or your host's file manager. The fix: let one layer handle the redirect, usually the server or host, and turn the plugin's redirect off. The same fight happens behind a CDN or proxy that connects to your server over plain HTTP: WordPress sees an HTTP request, redirects it to HTTPS, and the proxy sends it back over HTTP. Cloudflare's "Flexible" SSL mode is the best-known example. - A leftover .htaccess redirect from before the migration. How to recognize it: the trace shows a redirect to the old domain or an old path, or a rule that the new site's settings now redirect straight back. The fix: open
.htaccessin the site root, look above the standard# BEGIN WordPressblock forRedirectorRewriteRulelines added for the old setup, and remove the ones that no longer apply. Keep a copy of the file before editing it.
How much ranking value a redirect actually passes
Google's own redirect documentation confirms a correctly implemented 301 makes the new URL canonical in its index, and treats it as passing essentially the same ranking signals a direct link would — there's no partial "redirect penalty" the way older SEO advice sometimes claimed. The real, measurable losses in practice come from two things: chain length (each extra hop costs crawl budget and adds latency, and past a certain length the destination risks not being crawled at all), and destination mismatch (redirecting a deleted page to an unrelated page, most often the homepage, rather than to a genuinely relevant replacement — a pattern search engines can identify as a poor-quality substitution regardless of the status code used).
How to check which redirect a URL returns
To find out whether a URL answers with a 301, a 302 or something else, use any of these three methods. Each one shows the status code and the Location header, which is the address the redirect sends you to.
- An online redirect checker. Paste the URL into Frost Rank's redirect chain checker. It lists every hop with its status code, destination and response time, so a chain or a 302 that should be a 301 stands out at once. It needs no setup, and it also works for URLs you can't open from your own network.
- curl in a terminal.
curl -Iasks for the response headers only, and adding-Lmakes curl follow each redirect and print the headers of every hop. Here is a real trace of an old URL on this site, with the other headers left out:
Each status line is one hop. The first$ curl -sIL http://frostrank.com/guides/301-vs-302-redirects HTTP/1.1 301 Moved Permanently Location: https://frostrank.com/guides/301-vs-302-redirects HTTP/1.1 301 Moved Permanently Location: /guides/301-302-redirects-chains-guide HTTP/1.1 200 OKLocationmoves the request from HTTP to HTTPS, and the second sends the old path to the guide's current address, so this old link takes two hops to reach the page. ALocationthat starts with/is relative and stays on the same domain. Note that-Isends a HEAD request, and a few servers answer HEAD differently from a normal GET; if the result looks odd, runcurl -sL -o /dev/null -D - <url>instead, which makes real GET requests and prints only the headers. - Your browser's developer tools. Open DevTools (F12), go to the Network tab, tick Preserve log so the redirect isn't wiped when the page changes, and tick Disable cache so the browser doesn't replay a 301 it cached earlier. Then load the URL. The first row shows the redirect's status code in the Status column; click it and look under Response Headers for
Location. The rows after it are the next hops.
Tracing a chain properly
Checking redirects from a browser's network tab shows individual hops, but two things make a dedicated trace more reliable: browsers auto-follow the full chain in a single visible request by default, and cross-origin restrictions can block reading intermediate status codes and headers from client-side JavaScript when the destination is on a different origin. Frost Rank's Redirect Chain Checker traces one hop at a time from the server side specifically to avoid both problems, and pairs with the HTTP Header Checker for inspecting the response headers at the final destination once the chain resolves.
Site migration redirect checklist
Most chains and loops are created during a migration, so it's the cheapest moment to get redirects right. Before and after any move to a new domain, URL structure or platform:
- Map every old URL to its new destination. List every URL that has traffic, backlinks or a place in the sitemap, and give each one the most relevant new page. Point straight at the final URL in one hop, never at another redirect.
- Implement the redirects as 301s at the server level. Use the web server, host or CDN configuration rather than JavaScript or meta refresh redirects, and use a 301 (or 308), not a 302, because the move is permanent.
- Update internal links, canonicals and the sitemap. Change them to the final URLs so your own pages never send visitors or crawlers through a redirect. The redirects are only for old external links and bookmarks.
- Trace the full list after launch. Run the old URLs through the redirect checker and confirm each one returns a single 301 to the right page, with no chains, loops or 404s.
- Monitor Search Console for two weeks. Watch the "Page with redirect" list in the Pages report. Old URLs belong there; new, final URLs don't, and one that shows up is still being redirected somewhere. Google's guide to site moves with URL changes covers the rest of the process.
Frequently asked questions
A 301 is a permanent redirect: search engines replace the old URL with the new one in their index and consolidate ranking signals there, and browsers cache it. A 302 is a temporary redirect: the original URL usually stays indexed because it is expected to come back, and browsers don't cache it by default. See the 301 vs 302 comparison table.
Use a 301 when a move is permanent, like a migration, a new URL structure or two pages merged into one, and a 302 only when the original URL is coming back, such as a maintenance page or an A/B test. A 302 on a permanent move keeps the old URL indexed for longer. See every redirect code compared.
More than one is already worth fixing. Google has stated it follows up to 10 redirect hops per crawl attempt before giving up, after which the URL is treated as unreachable for that crawl, and some crawlers and tools stop sooner. But every hop past the first adds latency and crawl cost for nothing, so the practical target is a single redirect from any old URL straight to its final page. See how chains form and how to audit them.
A loop is a chain that leads back to a URL it already visited, usually because an old migration rule conflicts with a newer one, and browsers give up with a "too many redirects" error. Fix it by tracing the chain hop by hop to find the rule that points backward, then delete or correct that rule so every URL points forward to the final page, and clear any CDN or browser cache that still holds the old redirect. See how loops form and how to find them.
You can see each hop there, but browsers follow the whole chain automatically and cross-origin restrictions can hide the intermediate status codes. A server-side trace that requests one hop at a time avoids both problems. See how to trace a chain properly.
Effectively yes: Google treats a correct 301 as passing the same ranking signals a direct link would. Value is really lost through long chains and redirects to irrelevant pages. See where redirects really lose value.
Neither a 301 nor a 302 — use a 404 (Not Found) or, if the removal is intentional and permanent, a 410 (Gone). Redirecting a deleted page with no real replacement to an unrelated page (often the homepage) is a common mistake known as a "soft 404": it looks fine to a human visitor but signals a mismatched destination to search engines, which can hurt rather than preserve the deleted page's value.
Written from real migration cleanups where redirect chains and loops had accumulated across multiple past site changes — the exact leftover-rule pattern described above is the actual root cause found and fixed each time, not a generic textbook description.
Available for SaaS & AI automation projects → Hire me · Portfolio · Services
Was this guide helpful?
Rate it and leave a comment — takes 10 seconds, and genuinely helps decide what to fix or build next.