Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 308 Permanent Redirect
3xx Redirection

HTTP 308 Permanent Redirect

HTTP 308 Permanent Redirect means the resource has moved permanently to the URL in the Location header, and the client must keep the same method and body.

Quick answer

HTTP 308 Permanent Redirect means the resource has moved permanently to the URL in the Location header, and the client must keep the same method and body. It is the method-safe version of 301 and is treated by Google the same as a 301.

Last updated · Maintained by FreeAIToolz · How we test

What does HTTP 308 Permanent Redirect mean?

Use 308 for permanent moves of APIs or forms where POST must stay POST. Many platforms (Vercel, Next.js, Netlify) use 308 by default for permanent redirects and trailing-slash normalisation.

Status code308
NamePermanent Redirect
Class3xx Redirection
Defined inRFC 9110 §15.4.9
Cacheable by defaultYes (heuristically cacheable)
Safe to retry automatically?Not applicable
Related headersLocation

What causes HTTP 308?

  • Permanent URL or domain changes.
  • Framework trailing-slash or HTTPS normalisation (Vercel and Next.js default to 308).

How do I fix HTTP 308?

  1. Point redirects at the final URL to avoid chains.
  2. Update internal links and sitemaps to the destination URL.

What should a client do after HTTP 308?

Repeat the request to the new URL and update stored links.

Does HTTP 308 affect SEO?

Equivalent to 301 for Google: a strong canonical signal for the target, and ranking signals are consolidated there.

Example 308 response

HTTP/1.1 308 Permanent Redirect
Date: Mon, 01 Dec 2026 12:00:00 GMT
Location: https://www.example.com/new-path/

How to return 308 Permanent Redirect in code

Express (Node.js)

res.redirect(308, '/new-url');

Next.js route handler

return Response.redirect(new URL('/new-url', request.url), 308);

Flask (Python)

return redirect('/new-url', code=308)

PHP

header('Location: /new-url', true, 308);
exit;

Nginx

location = /old-url {
    return 308 /new-url;
}

Other 3xx status codes

Further action is needed, usually following the Location header to another URL.

Frequently asked questions

Is 308 as good as 301 for SEO?
Yes. Google documents 301 and 308 as permanent redirects and handles them the same way.
Why does Vercel return 308?
Vercel and Next.js use 308 for permanent redirects (including trailing slash rules) so non-GET requests keep their method.
Is 308 a client or server error?
Neither. 308 is in the 3xx Redirection class. Further action is needed, usually following the Location header to another URL.