HTTP 308 Permanent Redirect — What It Means & How to Fix It
Warning3xx redirection
Overview
The HTTP 308 Permanent Redirect status code indicates the resource has permanently moved to a new URL, and the client must use the same HTTP method for the redirect.
Key Details
- Like 301, this is a permanent redirect, but it guarantees the HTTP method is preserved.
- Search engines treat 308 similarly to 301 for indexing purposes.
- The new URL is specified in the Location header.
- It was introduced to provide a permanent redirect that does not change the HTTP method.
Common Causes
- A resource permanently moved and the API requires method preservation.
- Domain migration for an API where POST endpoints must remain POST.
- Permanent URL restructuring that must preserve the original HTTP method.
Steps
- 1Follow the redirect to the URL in the Location header using the same HTTP method.
- 2Update references to use the new URL permanently.
- 3Resend the original request body if applicable.
- 4For web pages, 301 is usually sufficient; use 308 when method preservation matters.
Tags
httpredirectionpermanentmethod-preservation
Related Items
More in 3xx Redirection
http-300-multiple-choicesHTTP 300 Multiple Choices — What It Means & How to Fix It
Warninghttp-301-moved-permanentlyHTTP 301 Moved Permanently — What It Means & How to Fix It
Warninghttp-302-foundHTTP 302 Found — What It Means & How to Fix It
Warninghttp-303-see-otherHTTP 303 See Other — What It Means & How to Fix It
Warninghttp-304-not-modifiedHTTP 304 Not Modified — What It Means & How to Fix It
Warninghttp-305-use-proxyHTTP 305 Use Proxy — What It Means & How to Fix It
WarningFrequently Asked Questions
It means the resource has permanently moved to a new URL and the client must use the same HTTP method for the redirected request.