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 code | 308 |
|---|---|
| Name | Permanent Redirect |
| Class | 3xx Redirection |
| Defined in | RFC 9110 §15.4.9 |
| Cacheable by default | Yes (heuristically cacheable) |
| Safe to retry automatically? | Not applicable |
| Related headers | Location |
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?
- Point redirects at the final URL to avoid chains.
- 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?
Why does Vercel return 308?
Is 308 a client or server error?
Related
- 301 Moved Permanently HTTP 301 Moved Permanently means the resource now lives at a new URL given in the Location header, and the mov.
- 307 Temporary Redirect HTTP 307 Temporary Redirect sends the client to the URL in the Location header for now, and requires it to rep.
- 302 Found HTTP 302 Found is a temporary redirect: the resource is currently at the URL in the Location header, but clien.
- 410 Gone HTTP 410 Gone means the resource used to exist but has been permanently removed and will not come back, with n.
- Open the HTTP Status Codes Reference → Free, no signup.