Technical SEO Guide
URL Structure and Redirects: 301 vs 302, and How to Fix Redirect Chains
Your URLs and redirects are where a lot of quiet SEO damage happens. Pick the wrong redirect on a migration and you can lose rankings for weeks. This guide covers what a good URL looks like, the real difference between a 301 and a 302, and how to find and fix redirect chains.
By Rahul Saini, Author at Search Counsel Co. Last updated [JULY] 2026.
Featured answer: what’s the difference between a 301 and a 302 redirect?
A 301 redirect is permanent and tells Google to index the new URL. A 302 is temporary and tells Google to keep the original URL indexed. Both pass ranking signals, so the choice isn’t about losing PageRank. It’s about which URL you want Google to keep. Use a 301 for permanent moves and a 302 for temporary ones.
Forget two old rules. A 301 does not “lose 15% of your link juice,” and a 302 does not “kill your SEO.” Google confirmed years ago that both 301 and 302 pass ranking signals. The real difference is which URL Google keeps in its index: a 301 switches to the new URL, a 302 keeps the old one. Pick the code that matches your intent, not the one you think preserves authority.
301
Permanent
Moved for good. Google indexes the new URL and consolidates signals to it.
302
Temporary
Away for a bit. Google keeps the original URL indexed as the canonical one.
Chains
Point to final
Every redirect should go straight to the destination, never hop through others.
URLs
Clean and stable
Readable, lowercase, hyphenated, and changed only when you really must.
Jump to what you need
Article note: Written by Rahul Saini at Search Counsel Co. Grounded in Google’s guidance on redirects and canonicalization, and public statements from Google’s Gary Illyes and John Mueller. One migration figure is a widely-cited case and is noted as directional.
1) What makes an SEO-friendly URL
A good URL tells both people and machines what a page is and where it fits. The best ones are short, readable, and stable. You don’t need to obsess over them, but a few habits prevent problems and help your pages look trustworthy in search results.
- Make it readable. A URL like /technical-seo/site-architecture describes the page and its place in your site. A string like /p?id=8842 tells nobody anything.
- Use hyphens, not underscores or spaces. Google reads hyphens as spaces between words. Underscores and encoded spaces (%20) don’t separate words the same way.
- Keep it lowercase. On many servers, /Page and /page are two different URLs, which splits your signals. Standardize on lowercase and redirect the rest.
- Front-load the keyword and keep it short. URL length isn’t a direct ranking factor, but shorter URLs are easier for users to read, share, and trust, and the important words should come early.
- Reflect your hierarchy, but stay shallow. Folders should mirror your structure without burying pages under five levels of nesting. This connects directly to your site architecture.
- Avoid parameters and dates where you can. Long query strings create duplicate and low-value URLs, and dates in a URL make evergreen content look stale and awkward to update.
- Be consistent. Pick one version of www versus non-www, and trailing slash versus none, then redirect the other so everything points to a single canonical URL.
The most important rule is the quietest one: don’t change URLs without a good reason. Every URL change means setting up a redirect and risking a temporary dip while Google reprocesses. When you do need to change one, a redirect is how you protect its value.
2) 301 vs 302: the real difference
A redirect sends a browser and a crawler from one URL to another. The two you’ll use almost all the time are the 301 and the 302, and choosing between them is simpler than the old myths make it sound.
| 301 (Permanent) | 302 (Temporary) | |
|---|---|---|
| Meaning | The URL has moved for good. | The move is temporary; the original will return. |
| Which URL Google indexes | The new destination. | The original, kept as canonical. |
| Passes ranking signals | Yes. | Yes. |
| Browser caching | Cached, so it’s sticky and hard to reverse. | Not cached, so it’s easy to reverse. |
| Use for | Permanent moves, HTTP to HTTPS, migrations, URL changes. | A/B tests, maintenance, seasonal promotions. |
Here’s what actually happens. Google’s Gary Illyes confirmed back in 2016 that redirects don’t lose PageRank, and John Mueller has repeated that both 301s and 302s pass ranking signals. So the redirect type doesn’t decide whether authority flows. It decides which URL Google treats as canonical. A 301 tells Google to switch its index to the new URL and consolidate everything there. A 302 tells Google the original is still the real page, so it keeps that one indexed and waits for it to come back.
That’s why using a 302 when you mean a 301 causes trouble. Google keeps the old URL in its index and delays moving your rankings to the new structure. It isn’t a penalty, it’s a signal mismatch, but the effect on your traffic can look the same. Google may eventually decide a long-lived 302 is really permanent and switch on its own, but the timing is unpredictable and you lose ground while it hesitates. Use the code that matches your intent from the start.
A simple rule: if the URL will never come back, use a 301. If you can’t name an end date, it’s permanent, so use a 301. If the change really is short-term and reversible, use a 302. And remember the caching catch: a 301 sticks in browsers and is hard to undo, so when a change might not last, the reversible 302 is the safer pick.
3) Other redirect types you might meet
For most SEO work, 301 and 302 are all you need. A few other codes come up, mostly for developers:
- 308 (Permanent Redirect). Like a 301, but it preserves the request method, so a form submission stays a submission. Matters for forms and APIs; for content pages, a 301 is the standard.
- 307 (Temporary Redirect). The strict temporary version of a 302 that also preserves the method. You’ll also see browsers use it internally to force HTTPS.
- Meta refresh. A redirect written into the page’s HTML instead of the server. It’s slow and a last resort for when you can’t change server settings. Avoid it if you can.
- JavaScript redirects. A redirect fired by client-side code. Google can follow these, but slowly, and most AI crawlers and simple crawlers miss them entirely because they don’t run JavaScript. This is a real trap on single-page apps that handle routing in the browser. Always prefer a server-side 301 or 302.
The JavaScript point connects to a change Google clarified recently: it may not run scripts on pages that don’t return a 200 status, so a redirect built in JavaScript on an error page may never fire. Our guide to Google’s December 2025 rendering update covers that in detail.
4) Redirect chains and loops
A redirect chain is when a URL doesn’t point straight to its final destination but hops through one or more other URLs first: URL A redirects to B, which redirects to C. Every hop adds a little delay (each one costs the user a fraction of a second, and chains of three or more add up to noticeable lag on mobile), and every hop spends one of Googlebot’s crawl requests. Google generally follows only about five hops in a single crawl before it gives up, and if it stops partway, the final page may not be crawled or indexed at all.
Chains build up quietly over years of migrations and restructures. A site that changed its URLs in 2020, again in 2023, and once more this year can end up with old-2020 pointing to old-2023 pointing to the new URL: three hops that should be one. The fix is always the same: point the first redirect straight at the final destination, and collapse the chain. Just as important, and often forgotten, update your internal links to point at the final URL too, so crawlers and users never hit the redirect in the first place.
Loops are the emergency. A redirect loop is when A redirects to B and B redirects back to A, creating an endless cycle. The browser gives up with an “ERR_TOO_MANY_REDIRECTS” error, the page becomes unreachable, and crawlers abandon it, so it never gets indexed. Loops are usually a misconfigured HTTPS rule or a conflicting CMS redirect. Fix the offending rule as soon as you find one.
Chains and loops also show up as redirect errors in Search Console, which is one of the crawl issues covered in our guide to finding and fixing crawl errors, and the wasted crawling ties into crawl budget on larger sites.
5) Redirects during a site migration
Migrations are where redirects earn their reputation, because it’s where the costly mistakes happen. When you move a domain or change your URL structure across hundreds or thousands of pages at once, three rules keep your rankings intact.
- Map old to new, one to one. Every old URL should 301 to its closest equivalent new URL. Don’t take shortcuts.
- Don’t redirect everything to the homepage. Redirecting a batch of retired pages straight to the homepage is treated by Google like a soft 404, and you lose the value those pages had built.
- Use the right tools. For a domain change, use the Change of Address tool in Search Console to tell Google directly, and update your internal links and sitemap to the new URLs.
The stakes are real. In one widely-cited case, a large retailer lost several million in revenue in the first month after a migration because the redirects weren’t implemented properly. Using 302s where 301s were needed, or leaving chains behind, is one of the most common and most expensive migration errors there is.
6) How to find and fix redirect problems
You can audit your redirects with free tools. For a full picture, combine a quick spot-check with a site-wide crawl:
- 1. Spot-check a single URL. Run curl -I https://yoursite.com/old-url to see the status code and the Location header it points to. Or open your browser’s DevTools, go to the Network tab with “Preserve log” on, and watch the full redirect sequence.
- 2. Crawl the whole site. A crawler like Screaming Frog or Sitebulb has a dedicated redirect-chains report that lists every hop and status code across your site. Ahrefs and Semrush site audits flag them too.
- 3. Check Search Console. The Pages report shows pages with redirects and flags redirect errors, so you can catch loops and broken destinations. Those statuses are explained further in our guide to fixing indexing problems.
- 4. Fix at the source. For each problem, point the first redirect at the final 200 URL, update the internal links that pointed at the old URL, and correct any rule causing a loop.
Make this a regular habit. A quarterly redirect check catches chains before they pile up, especially after any launch, redesign, or migration.
7) What this means for AI crawlers
Redirects and clean URLs matter for AI answer engines too, and in a slightly stricter way. Because most AI crawlers don’t run JavaScript, a redirect built in JavaScript is invisible to them. They need a real server-side 301 or 302 to follow you to the new URL. If your redirect logic lives only in client-side code, AI engines may never reach the page they were meant to land on.
Clean, stable URLs help on the citation side as well. When your content lives at one canonical URL rather than scattered across duplicates and chains, AI engines can cite the right page with confidence. Redirect chains waste their fetches the same way they waste Googlebot’s, and loops make a page unreachable to everyone. Keeping your URLs tidy and your redirects direct is part of staying eligible for AI answers, which our AI search optimization guide and the technical SEO pillar cover in full. And when the question is which duplicate version of a page to keep, that’s a job for a canonical tag rather than a redirect, covered in our guide to canonical tags and duplicate content.
Free tool
Run the Crawlability and AI-Readiness Checker
It follows your redirects, flags chains and loops, and checks whether your URLs resolve cleanly for both Googlebot and AI crawlers. Check your site. For a full redirect and migration audit, our technical SEO and site audit service runs it through our [FRAMEWORK NAME] process.
8) Sources used for this guide
This guide is based on Google’s documentation and public statements, plus established redirect practice. One migration figure is noted as a widely-cited case rather than a verified benchmark.
| Source | What it supports |
|---|---|
| Google’s Gary Illyes (2016) and John Mueller, public statements | That 301 and 302 redirects both pass PageRank, and the old “lose 15%” rule is retired. |
| Google Search Central, redirects and canonicalization documentation | How 301 and 302 affect which URL Google indexes, and the Change of Address tool for migrations. |
| Screaming Frog and Sitebulb documentation | How to find redirect chains and loops with a site-wide crawl. |
| Industry migration case reporting | The scale of revenue loss possible when migration redirects are mishandled. Directional. |
FAQ: URLs and redirects
Does a 302 redirect hurt SEO?
Not directly, and it doesn’t stop ranking signals from passing, which is a common myth. The catch is that a 302 tells Google to keep the original URL indexed. So if you use a 302 for a permanent move, Google keeps the old URL and delays switching to the new one, which can look like a ranking drop. For permanent changes, use a 301.
Does a 301 redirect lose PageRank?
No. Google retired the old idea that a 301 costs you around 15% of your link equity. A single, direct 301 to a closely equivalent page passes essentially all of its ranking signals. The thing that does cost you is chaining several redirects together, not using a 301 itself.
When should I use a 301 vs a 302?
Use a 301 when the URL has moved for good: domain migrations, HTTP to HTTPS, URL restructures, or merging pages. Use a 302 when the change is temporary and reversible: A/B tests, maintenance pages, or seasonal promotions where the original URL will come back. If you can’t name an end date, treat it as permanent and use a 301.
What is a redirect chain and why is it bad?
A redirect chain is when a URL redirects to another URL that then redirects again, instead of going straight to the final page. Each hop adds delay, spends crawl budget, and risks Google stopping before it reaches the end. Google generally follows only about five hops. Fix chains by pointing the first redirect directly at the final destination.
How many redirects is too many?
Aim for zero chains, meaning each redirect goes straight to its final URL. In practice, keep any chain to one or at most two hops. Google generally stops following after about five, and beyond that the final page may not get crawled or indexed, so long chains are a real risk.
What’s the difference between a redirect and a canonical tag?
A redirect physically sends users and crawlers to a different URL, and the original stops serving its own content. A canonical tag leaves both URLs working but tells Google which one is the preferred version to index. Use a redirect when a page has truly moved, and a canonical when duplicate versions of a page should all point to one preferred URL.
Conclusion: clean URLs, correct redirects
URLs and redirects reward a little discipline. Keep your URLs readable, lowercase, and stable, and change them only when you have to. When you do, reach for a 301 if the move is permanent and a 302 only if it’s truly temporary, remembering that both pass ranking signals and the real difference is which URL Google keeps. Then keep your redirects direct, never chained, and audit them after every big change.
URLs and redirects are two-thirds of this sub-pillar. The last piece is deciding which version of a page Google should index when several URLs show similar content, which is the job of canonical tags. That’s covered in our guide to canonical tags and duplicate content, alongside site architecture, under the technical SEO pillar.
Editorial note: This guide is for general marketing education. Redirect handling and search behavior change over time, so verify anything time-sensitive against its source, and test redirects on a small scale before rolling them out across a large site or a migration.
