# 301 vs 302 vs 307 vs 308: what each redirect tells Google, and what your framework sends by default

> Google treats 308 like 301 and 307 like 302. What each status means in HTTP, what Next.js, nginx, Apache, WordPress and Laravel send by default.

Source: https://seofix.ai/blog/301-vs-302-vs-307-vs-308  
Published: 2026-11-26  
Updated: 2026-11-02  
Author: SEOFix Team  
Category: Technical SEO  
Tags: Technical SEO, Guides  
Length: 1,791 words, 8 min read

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](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) 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](https://www.rfc-editor.org/rfc/rfc9110.html)) | 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](https://www.rfc-editor.org/rfc/rfc9110.html) 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 as `307`.

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](https://developers.google.com/search/docs/crawling-indexing/301-redirects) guide:

- **Permanent** (`301`, `308`, instant meta refresh, JavaScript `location`): "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](https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects) 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:

```javascript
// 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:

```typescript
// 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()`](https://github.com/vercel/next.js/blob/canary/packages/next/src/server/web/spec-extension/response.ts) defaults to `307`:

```typescript
// 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`](https://nextjs.org/docs/app/api-reference/functions/redirect) [docs](https://nextjs.org/docs/app/api-reference/functions/redirect) 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](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html)):

```
location = /old-pricing { return 301 https://www.example.com/pricing; }
```

`rewrite` is where `302`s 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](https://nginx.org/en/docs/http/ngx_http_core_module.html)). That's a correct status, but it's a hop you might not know you have.

### Apache

From the [mod\_alias docs](https://httpd.apache.org/docs/2.4/mod/mod_alias.html): "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](https://httpd.apache.org/docs/2.4/rewrite/flags.html)). 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()`](https://developer.wordpress.org/reference/functions/wp_redirect/) and `wp_safe_redirect()` take `$status = 302` by default. Theme and plugin code that moves content permanently should pass the status:

```php
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()`](https://developer.wordpress.org/reference/functions/redirect_canonical/) and [`wp_old_slug_redirect()`](https://developer.wordpress.org/reference/functions/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](https://laravel.com/framework/docs/13.x/routing) say "By default, `Route::redirect` returns a `302` status code", and the `redirect()` helper and the [`Redirector`](https://github.com/laravel/framework/blob/13.x/src/Illuminate/Routing/Redirector.php) methods (`to`, `route`, `away`, `back`) all default to `302` as well:

```php
// 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:** `301` or `308`. Pick whichever your stack produces; Google doesn't care. If you're writing an API that receives `POST`, `308` keeps the method.
- **Temporary detour you'll undo:** maintenance page, a product that's briefly unavailable, a seasonal page that comes back: `302` or `307`. The original URL stays in search.
- **After a form submission:** `303`, so the browser loads the result page with `GET`. 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:

```bash
curl -sI https://www.example.com/old-pricing | grep -iE '^(HTTP|location)'
```

A list of redirect sources, flagging temporary ones:

```bash
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](https://seofix.ai/blog/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 `302`s in one call with `GET /v1/crawls/{id}/pages?status_code=302` ([API reference](https://seofix.ai/help/api-reference)). Links to those redirects show up as `REDIRECTED_INTERNAL_LINK` and chains as `REDIRECT_CHAIN` ([links and redirects checks](https://seofix.ai/help/checks-links-and-redirects)).

## 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](https://seofix.ai/blog/page-with-redirect-search-console) 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](https://developers.google.com/search/docs/crawling-indexing/301-redirects). 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).
