Error Codes Wiki

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

  1. 1Follow the redirect to the URL in the Location header using the same HTTP method.
  2. 2Update references to use the new URL permanently.
  3. 3Resend the original request body if applicable.
  4. 4For web pages, 301 is usually sufficient; use 308 when method preservation matters.

Tags

httpredirectionpermanentmethod-preservation

Related Items

More in 3xx Redirection

Frequently 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.