301 vs 302 vs 307 vs 308: what each redirect tells Google, and what your framework sends by default
For Google, 301 and 308 are the same strong signal and 302 and 307 the same weak one. The real differences are request methods and caching, and the default your framework picks when you don't choose.

For Google, a 308 is the same as a 301 and a 307 is the same as a 302. Google's HTTP status code docs say so in those words: 307 is "Equivalent to 302" and 308 is "Equivalent to 301". Permanent redirects (301, 308) are a strong signal that the target should be the canonical URL; temporary ones (302, 303, 307) are a weak signal, and Google keeps showing the old URL. The difference between 301 and 308 is about request methods, which matters to browsers and APIs, not to Google.
So the choice that affects SEO is permanent vs temporary. The trap is that most frameworks default to temporary when you don't say otherwise: nginx rewrite, Apache Redirect, WordPress wp_redirect(), Laravel's redirect() and Next.js redirect() all send a temporary status unless you ask for a permanent one.
The four codes side by side
| Code | HTTP meaning (RFC 9110) | Method on redirect | Cacheable by default | Google treats it as |
|---|---|---|---|---|
301 Moved Permanently | New permanent URI | May change POST to GET | Yes (heuristically) | Strong signal, target is canonical |
302 Found | Temporarily elsewhere | May change POST to GET | No | Weak signal, source stays in results |
307 Temporary Redirect | Temporarily elsewhere | Must not change | No | Same as 302 |
308 Permanent Redirect | New permanent URI | Must not change | Yes (heuristically) | Same as 301 |
303 See Other is the fifth one you'll meet. It sends the client to a different resource with a GET, typically after a form POST. Google lists it with the temporary redirects.
What the HTTP spec says
RFC 9110 explains why there are two of each. In HTTP/1.0, 301 and 302 were meant to keep the request method, but "early user agents split on whether to redirect POST requests as POST ... or as GET", and "prevailing practice eventually converged on changing the method to GET." 307 and 308 "were later added to unambiguously indicate method-preserving redirects."
So:
301: "the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs." A client "MAY change the request method from POST to GET".302: "the target resource resides temporarily under a different URI", and "the client ought to continue to use the target URI for future requests."307: temporary, and the user agent "MUST NOT change the request method".308: permanent, with the same method-preserving rule as307.
The RFC also makes 301 and 308 "heuristically cacheable". A browser or CDN can keep serving a permanent redirect from cache without asking your server again, which is why a wrong 301 can outlive the config change that fixes it.
For a page that only ever receives GET requests (any page you want indexed), 301 and 308 behave the same in practice, and so do 302 and 307. Google adds one request: "While Google treats these status codes the same way, keep in mind that they're semantically different. Use the status code that's appropriate for the redirect so other clients (for example, e-readers, other search engines) may benefit from it."
What Google does with each
From Google's Redirects and Google Search guide:
- Permanent (
301,308, instant meta refresh, JavaScriptlocation): "Googlebot follows the redirect, and the indexing pipeline uses the redirect as a signal that the redirect target should be canonical." Search shows the new URL. - Temporary (
302,303,307, delayed meta refresh): "Googlebot follows the redirect, but the indexing pipeline doesn't use the redirect as a signal that the redirect target should be canonical. The target page might still be indexed if other canonicalization signals are present." Search keeps showing the source URL.
Google's advice for permanent moves is a "permanent server-side redirect whenever possible", and for temporary ones its example is a service that is "temporarily unavailable": send users to a page that explains it "without compromising the original URL in search results."
Redirect status is one canonicalization signal among several. A 302 doesn't lock the old URL into the index forever; if internal links, the sitemap and canonical tags all point at the new URL, Google can still pick it. But you're making Google guess, and a page moved for good should say so.
What your framework sends by default
Most wrong redirects come from these defaults. Checked against each project's documentation or source in November 2026:
| Stack | Call | Default status |
|---|---|---|
| Next.js | redirects in next.config.js | 307 with permanent: false, 308 with permanent: true (or a custom statusCode) |
| Next.js | redirect() from next/navigation | 307 (303 for a Server Action form post) |
| Next.js | permanentRedirect() | 308 |
| Next.js | NextResponse.redirect() in Proxy | 307 unless you pass a status |
| nginx | return 301 URL | whatever code you write |
| nginx | rewrite ... redirect / permanent | 302 / 301 |
| Apache | Redirect /old URL (no status) | 302 |
| Apache | RewriteRule ... [R] | 302 |
| WordPress | wp_redirect(), wp_safe_redirect() | 302 |
| WordPress | canonical and old-slug redirects (core) | 301 |
| Laravel | redirect(), Route::redirect() | 302 |
| Laravel | Route::permanentRedirect() | 301 |
Next.js
Next.js chose 307 and 308 deliberately. The redirects docs explain that "many browsers changed the request method of the redirect to GET, regardless of the original method", so "Next.js uses the 307 temporary redirect, and 308 permanent redirect status codes to explicitly preserve the request method used." For Google that's fine: 308 is a 301.
Use the config for fixed URL moves:
// next.config.js
module.exports = {
async redirects() {
return [
{ source: "/blog/:slug", destination: "/articles/:slug", permanent: true }, // 308
];
},
};
Use permanentRedirect() when a record's URL changed, for example a renamed slug:
// app/products/[slug]/page.tsx
import { notFound, permanentRedirect } from "next/navigation";
import { getProductBySlug } from "@/lib/products";
export default async function ProductPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const product = await getProductBySlug(slug);
if (!product) notFound();
if (product.slug !== slug) permanentRedirect(`/products/${product.slug}`); // 308
// ...render
}
In Proxy, pass the status yourself. NextResponse.redirect() defaults to 307:
// proxy.ts
import { NextResponse, type NextRequest } from "next/server";
export function proxy(request: NextRequest) {
if (request.nextUrl.pathname === "/old-pricing") {
return NextResponse.redirect(new URL("/pricing", request.url), 308);
}
}
One Next.js case changes the redirect type entirely. The redirect docs say: "When used in a streaming context, this will insert a meta tag to emit the redirect on the client side." Once a page has started streaming (a loading.tsx or a <Suspense> fallback has rendered), the status is already sent as 200, and the redirect becomes a meta refresh in the HTML. Google treats an instant meta refresh as a permanent redirect, but its own guide lists server-side redirects as the type it's most likely to interpret correctly. Do the lookup that decides the redirect before anything suspends, or move it into next.config.js or Proxy.
nginx
return sends exactly the code you write, and since nginx 1.13.0 308 is treated as a redirect too (rewrite module docs):
location = /old-pricing { return 301 https://www.example.com/pricing; }
rewrite is where 302s sneak in. The redirect flag "returns a temporary redirect with the 302 code", and a rewrite whose replacement starts with http://, https:// or $scheme redirects even without a flag, also as a 302. Use permanent for a 301:
rewrite ^/blog/(.*)$ https://www.example.com/articles/$1 permanent;
nginx also redirects on its own. If a location is a prefix ending in a slash and is handled by proxy_pass (or fastcgi_pass and similar), a request without the slash gets "a permanent redirect with the code 301" to the slashed URL (core module docs). That's a correct status, but it's a hop you might not know you have.
Apache
From the mod_alias docs: "If no status argument is given, the redirect will be 'temporary' (HTTP status 302)." The same goes for mod_rewrite, where [R] is an "External redirect (default 302)" (flags docs). Say what you mean:
Redirect permanent /old-pricing https://www.example.com/pricing
Redirect 308 /api/v1/users https://www.example.com/api/v2/users
RewriteEngine On
RewriteRule ^blog/(.*)$ https://www.example.com/articles/$1 [R=301,L]
WordPress
wp_redirect() and wp_safe_redirect() take $status = 302 by default. Theme and plugin code that moves content permanently should pass the status:
add_action( 'template_redirect', function () {
if ( is_page( 'old-pricing' ) ) {
wp_safe_redirect( home_url( '/pricing/' ), 301 );
exit;
}
} );
WordPress core gets it right on its own redirects: redirect_canonical() and wp_old_slug_redirect() both call wp_redirect() with 301. Redirect plugins usually let you pick the code per rule; check what yours defaults to before importing a thousand rules.
Laravel
The routing docs say "By default, Route::redirect returns a 302 status code", and the redirect() helper and the Redirector methods (to, route, away, back) all default to 302 as well:
// routes/web.php
Route::permanentRedirect('/old-pricing', '/pricing'); // 301
Route::redirect('/blog/{slug}', '/articles/{slug}', 301); // 301
// in a controller, after finding the record by an old slug
return redirect()->route('products.show', $product, 301);
Which one to use
- Page or section moved for good, domain change, merged pages, HTTP to HTTPS, host normalisation:
301or308. Pick whichever your stack produces; Google doesn't care. If you're writing an API that receivesPOST,308keeps the method. - Temporary detour you'll undo: maintenance page, a product that's briefly unavailable, a seasonal page that comes back:
302or307. The original URL stays in search. - After a form submission:
303, so the browser loads the result page withGET. These URLs aren't meant to rank anyway. - Login walls and geo or language pickers: temporary by nature. Keep them off URLs you want indexed, or Google sees the detour instead of the page.
While you're testing a new permanent redirect, use a 302 and switch to 301 or 308 once it's right. Because permanent redirects are cacheable by default, a mistake shipped as 301 can stick in browsers and CDNs after you fix it.
Check what you're actually sending
One URL:
curl -sI https://www.example.com/old-pricing | grep -iE '^(HTTP|location)'
A list of redirect sources, flagging temporary ones:
while IFS= read -r url; do
code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
case "$code" in 302|303|307) echo "TEMPORARY $code $url" ;; esac
sleep 0.5
done < redirect-sources.txt
Do this for every URL that has backlinks or traffic and redirects. A 302 left on a page you moved two years ago is a one-line fix. If any of those redirects also chain through several hops, flatten them as described in redirect chains.
If you run SEOFix, every audit records each redirect as its own URL with its status code, so you can list all the 302s in one call with GET /v1/crawls/{id}/pages?status_code=302 (API reference). Links to those redirects show up as REDIRECTED_INTERNAL_LINK and chains as REDIRECT_CHAIN (links and redirects checks).
FAQ
Is a 308 redirect bad for SEO?
No. Google's status code docs say 308 is "Equivalent to 301". Next.js uses 308 for every permanent redirect.
Will a 302 pass link signals?
Google follows it, but treats it as a weak signal that the target is canonical, and keeps showing the source URL in results. If the move is permanent, change it to 301 or 308.
I used 302 for a permanent move. What now?
Switch it to 301 or 308 and make sure internal links, the sitemap and canonical tags point at the new URL. Google picks it up as it recrawls the old URL. If the old URL is listed under Page with redirect in Search Console, see Page with redirect for what that status means.
Does Google treat meta refresh as a 301?
An instant (0-second) meta refresh counts as permanent and a delayed one as temporary, per Google's redirect guide. Google still recommends server-side redirects first.
SEOFix records every redirect on your site with its status, chain and the pages that link to it, so a stray 302 or a three-hop chain shows up in the first audit. Your first audit is free (up to 500 pages, no card).
Keep reading

React SEO for single-page apps: prerender, SSR, per-route meta tags and real 404s
A Vite or Create React App site sends the same empty shell for every URL. Prerendering with React Router, React 19's title and meta tags, and real 404 status codes fix most of it without a rewrite.
1,666 words · 8 min read

Duplicate without user-selected canonical: which page Google kept, and how to set canonicals by template
Google found two URLs with the same content, neither declared a canonical, so Google picked one. How to check its choice, find where the variants come from, and set canonicals in Next.js and WordPress.
1,762 words · 8 min read

Trailing slash SEO: pick one form, redirect the other, and make every layer agree
/about and /about/ are two URLs to Google. Neither form ranks better; what hurts is serving both, or having two layers that each redirect the other way. Framework defaults, server config and a curl test.
1,494 words · 7 min read