A redirect looks like one thing to a visitor — the page moved — but it says something entirely different to a crawler. Choosing 301 when you meant 302 can strip link equity over months; choosing 302 when you meant 301 leaves duplicate URLs indexed for years. This guide compares the status codes, explains what each does to ranking signals, and gives clear rules for picking one.
The status codes side by side
| Code | Meaning | Browser behaviour | Search engine treatment |
|---|---|---|---|
| 301 | Moved permanently | Cacheable, no further questions | Transfer signals, drop the old URL |
| 302 | Found (temporary) | Cacheable only with care | Keep indexing the original, follow the new URL for now |
| 307 | Temporary redirect | Method strictly preserved | Same intent as 302, modern syntax |
| 308 | Permanent redirect | Method strictly preserved | Same as 301, rarely needed in practice |
The practical difference between 301 and 308 is almost nil for SEO. The decision most sites face is 301 versus 302, and the split is permanence: is this change forever, or is it coming back?
What Google does with each
Google treats a 301 as a consolidation instruction. It moves PageRank, drops the old URL from the index, and typically stops crawling it entirely — occasionally visiting just to confirm the redirect still exists. The transfer is not guaranteed to be 100%, and historical tests suggest some loss, but the merge is the intended behaviour and it is usually fast: days for a busy site, a few weeks for a quiet one.
A 302 is treated as temporary. The original URL stays indexed and keeps its signals; the destination may be crawled and shown, but engines expect the original to return. When a 302 sits in place for months, Google often starts treating it as a 301 by assumption — an outcome you should never rely on.
When to use a 301
- Domain change or rebrand, including http to https and www migrations.
- Permanent URL restructuring, such as moving from date-based to keyword slugs.
- Merging two pages into one and choosing the surviving URL.
- Removing a trailing slash, index.html, or uppercase path permanently.
- Consolidating duplicate URLs whose canonical you have decided to enforce with a redirect instead.
When to use a 302
- A/B tests or geo-located landing pages served for a campaign window.
- Temporary maintenance pages and scheduled downtime.
- Showing a login wall for content that returns to public view later.
- Seasonal or regional swaps where the original page will be restored on a known date.
If you cannot name the date the original comes back, you are looking for a 301.
Implementing without mistakes
- List every source URL and its final destination; never chain redirects more than once.
- Generate the correct rule set — Apache RewriteRule, Nginx return, IIS rewrite, or a meta refresh for static hosting — with the Redirect Code Generator.
- Update internal links to point straight at the destination so crawlers meet zero hops.
- Confirm the status code with a header check: curl -I returns 301 or 302 before any body content.
- Watch the crawl report for a fortnight — spikes in redirected URLs mean a template still emits the old address.
Common failure: redirecting a URL and then canonicalising the destination back to the source. Those two instructions cancel each other and the cluster never resolves. Verify the target's canonical with the Canonical Tag Builder, and make sure neither address is blocked in robots.txt, because a blocked redirect never gets followed in the first place.
Frequently asked questions
How long should a 302 stay in place? There is no official expiry, but treat anything beyond a few months as permanent and convert it to a 301 to avoid mixed signals.
Do redirects lose link equity? A 301 passes the overwhelming majority of it. Chained redirects and mismatched canonicals lose more than the status code ever will, so keep the path to one hop.
Should I redirect an old page or canonicalise it? Redirect when the old URL must stop existing. Canonicalise when you want both addresses to keep working for users but only one to rank.