Skip to content

301 vs 302 redirects (and 307): which one should you use?

301 is permanent, 302 is temporary, 307 keeps the request method. What each does for SEO, caching and short links, with Google's own rules and a decision table.

By Shortlen Editorial Updated 10 min read

A person walking a direct red path through a maze
The short answerUse a 301 when a URL has moved for good: Google indexes the new URL and browsers may cache the redirect. Use a 302 when the move is temporary and the original URL should stay in search results. A 307 is temporary too but keeps the request method, so a POST stays a POST. A short link you may re-point needs a redirect browsers do not cache.

Key takeaways

  • 301 and 308 mean moved permanently; 302 and 307 mean moved temporarily. Google treats 301 like 308 and 302 like 307.
  • Google uses a 301 as a strong signal to index the target, and a 302 as a weak one that keeps the original URL in results.
  • 307 and 308 exist so the request method and body never change; they matter for forms and APIs, rarely for ordinary links.
  • A 301 is cacheable by default, so browsers can keep sending people to an old destination; a short link that should stay editable needs no-store.
  • Keep redirects direct: Google follows up to 10 hops but recommends going straight to the final URL.

A redirect tells a browser, and every search engine crawler, that the page it asked for lives at another address. The status code you choose says how to treat that move: forever, for now, or for now with the request kept exactly as it was. Pick the wrong one and you can keep an old URL in Google for months, or lock visitors onto a destination you can no longer change. Every short link depends on these codes; the complete guide to URL shorteners explains how.

What is the difference between a 301 and a 302?

A 301 Moved Permanently says the resource has a new permanent address and future references should use it. A 302 Found says the resource is temporarily somewhere else and clients should keep using the original address. Everything else follows from that one difference: what search engines index, what browsers cache, and how safe the redirect is to change later.

Here is the full family of redirect codes you are likely to meet, with what the HTTP standard and Google say about each:

CodeMeaningRequest method on the next hopCacheable by defaultHow Google Search treats it
301Moved permanentlyGET stays GET; some browsers turn POST into GETYesStrong signal that the target should be indexed
308Permanent redirectMethod and body never changeYesSame as 301
302Found (temporary)GET stays GET; some browsers turn POST into GETNoWeak signal; the original URL usually stays in results
307Temporary redirectMethod and body never changeNoSame as 302
303See otherAlways becomes a GETNoTreated like 302

Sources: RFC 9110 sections 15.4.2 to 15.4.9, Google’s HTTP status code documentation and MDN, all opened 23 October 2026.

A short link passing through a single 301 redirect to its HTTPS destination
The ideal redirect: one hop, HTTPS all the way, straight to the final page.

How does Google treat 301 and 302 redirects?

Google’s documentation is unusually direct on this:

  • For a permanent redirect (301 or 308), Google’s indexing pipeline “uses the redirect as a signal that the redirect target should be canonical”, and the new URL is shown in search results.
  • For a temporary redirect (302, 303 or 307), the pipeline “doesn’t use the redirect as a signal that the redirect target should be canonical”. The source URL is usually the one shown in results, although the target can still be indexed if other signals point to it.
  • Google treats a 308 exactly like a 301 and a 307 exactly like a 302. It calls the 301 a “strong signal” and the 302 a “weak signal”.

On link equity, Google’s site-move guide says that “301 and other permanent redirects don’t cause a loss in PageRank”. So the old worry that a redirect “leaks” value is not a reason to avoid 301s. The real reason to pick carefully is canonicalization: which URL you want Google to show.

A rule of thumb that follows from this:

  • The old URL is gone for good and the new one should rank: 301 (or 308).
  • The old URL is coming back, or should keep its place in results: 302 (or 307).

When should you use a 301 redirect?

Use a 301 when the move is permanent and you want search engines and people to update their references:

  • You changed a page’s URL, merged two pages, or moved from HTTP to HTTPS.
  • You moved to a new domain. Google’s site-move guide recommends server-side permanent redirects and keeping them “for as long as possible, generally at least 1 year”.
  • You retired a product and want its old URL to send people to its successor.
  • You publish a short link as a permanent pointer to one page, for example on your own site or in a backlink you want credited to the destination.

When should you use a 302 redirect?

Use a 302 when the original URL is the real home and the detour is temporary:

  • A page is down for maintenance and visitors should see a notice for a few hours.
  • A seasonal promotion takes over a category page for two weeks.
  • You send people to a different page by country, device or language, and the original URL should stay the one indexed.
  • You expect to change the destination again soon.

The mistake to avoid is the “temporary” redirect that becomes permanent by accident. If a page has moved for good, leaving a 302 in place for months sends Google the wrong signal about which URL to show.

What is a 307 redirect, and when does it matter?

A 307 Temporary Redirect is a 302 with one guarantee: the browser “MUST NOT change the request method”, in the words of RFC 9110. The 308 is the permanent counterpart of the 301 with the same guarantee.

Why the extra codes exist: the specification never intended 301 and 302 to change the method, but some browsers historically turned a POST into a GET on the next request, dropping the form data. MDN notes that 307 and 308 were created to remove that ambiguity. In practice:

  • For a normal link click, which is always a GET, 302 and 307 behave the same, and so do 301 and 308.
  • For a form submission or an API call that might be redirected, use 307 (temporary) or 308 (permanent) so the POST body arrives intact.
  • If you deliberately want a POST to become a GET, for example to show a result page after a form, the right code is 303 See Other.

Why can a 301 be hard to undo?

RFC 9110 says that “a 301 response is heuristically cacheable”, unless explicit cache headers say otherwise. The same applies to 308. In plain terms, a browser that has seen a 301 may remember it and send the visitor straight to the old destination next time, without asking your server. A 302 and a 307 are not cached by default.

This matters a lot for short links. The whole point of a short link printed on a poster or sent in a newsletter is that you can change where it goes later. If the shortener answers with a cacheable 301, some returning visitors will keep landing on the old destination after you edit it, and their repeat clicks never reach the server, so they are not counted either.

The fix is a cache header that forbids storing the answer. BN Shortener sends every redirect with no-store, so repeat visits are always counted and a destination change takes effect at once, even for a link set to 301.

BN Shortener lets you choose the redirect type per link, in the link editor’s Settings tab. These are the options, in the dashboard’s own words, and when each fits:

Option in BN ShortenerWhat it isBest for
Standard (recommended)An HTML redirect page (JavaScript, with a meta-refresh fallback) that counts screen and language and runs pixels and Open in App; for SEO-critical links choose 301Links in social posts, email, SMS, QR codes and ads, where you want full analytics
301 PermanentA plain server redirect, best for SEOA permanent pointer to one page, where search credit for the destination matters. If you set a custom social preview on the link, search engine crawlers get the preview page instead of the HTTP redirect, so leave the preview empty on links where the 301 matters for SEO
302 TemporaryA plain server redirectA link you plan to re-point, or a temporary detour
307 TemporaryA plain server redirect that keeps the request methodLinks that may receive form posts or API calls

A few details that are easy to miss:

  • Links with pixels or an app keep the redirect page, even if you choose 301, 302 or 307, because pixels and Open in App need the page to run.
  • A custom preview card goes to social crawlers whatever the redirect type, so your Open Graph title and image still show in WhatsApp or LinkedIn. Search engine crawlers get that preview page too, instead of the 301, so leave the custom preview off links where the 301 matters for SEO.
  • Every answer is sent with no-store, so a 301 short link stays editable and every repeat visit is counted.

If you are unsure, keep the standard redirect. It gives you the richest data and is the default for a reason. For the SEO side of short links in general, see do short links hurt SEO?, and for the mechanics, how a URL shortener works.

How many redirects in a row is too many?

Every extra hop adds a round trip before the page starts loading, and each one is a place where something can break. Google says its crawlers follow up to 10 redirect hops, but its site-move guide recommends redirecting “to the final destination directly” and, where that is impossible, keeping chains short, ideally no more than 3 and fewer than 5.

Common ways chains appear:

  • A short link points at http:// and the site upgrades it to https://.
  • A short link points at example.com and the site adds www..
  • A short link points at another short link, or at a tracking URL that redirects again.
  • An old page was redirected, and later its target was redirected too.

BN Shortener’s Launch Check tests the whole path before you send a link. Its redirect-chain check fails on loops (more than 10 hops) and on HTTPS-to-HTTP downgrades, warns on repeated URLs and 4 or more hops, and notes when visitors end up on a different domain. It runs automatically on every new link; read more on the Launch Check feature page.

A pre-launch checklist marked ready to launch
Check the full redirect path before a link goes out, not after the complaints.

Three quick ways, from most to least technical:

  1. Command line. curl -sI fetches only the headers and does not follow the redirect:
curl -sI https://b1.lc/AbC9

Look at the first line for the status code and at Location for the next address. An illustrative answer:

HTTP/2 301
location: https://www.example.com/spring-sale
cache-control: no-store

Add -L to follow every hop and see the full chain.

  1. Browser developer tools. Open the Network tab, tick “Preserve log”, paste the link and press Enter. Each hop appears as its own row with its status code.

  2. Without opening the link. Add a + to the end of any BN Shortener link (https://b1.lc/AbC9+) to see its status and destination without being redirected, and without the visit being counted. For any other URL, the free Link Checker tests redirects, HTTPS and the destination in one pass.

What about meta refresh and JavaScript redirects?

Sometimes you cannot set a status code, for example on a static host. Google documents how it reads the alternatives:

  • An instant meta refresh (0 seconds) is treated as a permanent redirect.
  • A delayed meta refresh is treated as a temporary redirect.
  • A JavaScript redirect is followed only if rendering succeeds, so Google advises using it only when server-side or meta refresh redirects are impossible.

A server-side 301 or 302 is always the clearest signal.

Redirect checklist

Before you publish a redirect, run through this list:

  • Is the move permanent (301 or 308) or temporary (302 or 307)?
  • Will the URL ever receive a POST? Then use 307 or 308.
  • Does it point straight at the final URL, with the right protocol and host (https://www. or not)?
  • For a short link: is it cached? Editable links need no-store.
  • For a site move: will the redirects stay in place for at least a year?
  • Have you tested it with curl -sI or a link checker on both desktop and mobile?
  • If you changed a short link’s code, did you keep the old code working? BN Shortener’s “Keep old code as redirect to new code” option does this in one click.

For more habits that keep links healthy over years, see short link best practices and how to prevent link rot.

The right redirect depends on the link, not on the tool. If you want to choose it per link, with analytics that count people and a check of the full path before you send, you can start free at b1.lc. Every plan includes every redirect type, branded short links on your own domain and Launch Check; see the branded links feature page for the details.

Sources

  1. Redirects and Google Search, Google Search Central, 2026-04-14. Checked 2026-10-23.
  2. How HTTP status codes, and network and DNS errors affect Google Search, Google Search Central, 2026-02-04. Checked 2026-10-23.
  3. Site moves with URL changes, Google Search Central, 2026-08-20. Checked 2026-10-23.
  4. Redirections in HTTP, MDN Web Docs, 2026-08-27. Checked 2026-10-23.
  5. RFC 9110: HTTP Semantics, section 15.4, IETF, 2022-06. Checked 2026-10-23.

Questions people also ask

Is a 302 redirect bad for SEO?

Not when the move really is temporary. Google follows a 302 but treats it as a weak signal and keeps showing the original URL in results, which is what you want during a short promotion or maintenance. It becomes a problem only when a page has moved for good and you leave a 302 in place.

Does a 301 redirect pass PageRank?

Yes. Google's site-move documentation says that 301 and other permanent redirects don't cause a loss in PageRank. The bigger risks are long redirect chains and redirects to pages that do not match the original content.

What is the difference between a 302 and a 307?

Both are temporary. With a 302, some browsers change a POST request into a GET for the next request, for historical reasons. A 307 forbids that: the method and body stay the same. For a normal link click, which is a GET, they behave the same way.

How long should I keep a 301 redirect?

Google recommends keeping redirects after a site move for as long as possible, generally at least a year. Old links in emails, documents and printed material keep arriving for years, so many teams never remove them.

Which redirect does a URL shortener use?

It depends on the service and the link. BN Shortener lets you choose per link: a standard redirect page (the default, which counts screen and language and runs pixels and Open in App), or a plain 301, 302 or 307 server redirect. Every answer is sent with no-store, so even a 301 can be re-pointed.

Can I change a 301 redirect later?

On the server, yes, but browsers that cached the old 301 may keep using it, because a 301 is cacheable by default. Sending Cache-Control headers that forbid caching, as BN Shortener does on every redirect, avoids this.

Do meta refresh and JavaScript redirects count?

Google treats an instant meta refresh as a permanent redirect and a delayed one as temporary. It can follow JavaScript redirects after rendering but recommends them only as a last resort, because rendering can fail.

Try it on your next link

The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.