concept

HTTP 308 Permanent Redirect

HTTP 308 is a status code that indicates a permanent redirect, where the requested resource has been moved to a new URL permanently. It instructs clients to use the new URL for all future requests, and unlike some other redirects, it requires that the request method and body remain unchanged when redirected. This status code is part of the HTTP/1.1 specification and is used to ensure consistent and predictable behavior in web applications.

Also known as: 308 Redirect, Permanent Redirect, HTTP 308, 308 Status Code, Redirect 308
🧊Why learn HTTP 308 Permanent Redirect?

Developers should use HTTP 308 when they need to permanently move a resource to a new URL, such as during website restructuring or domain changes, to preserve SEO rankings and ensure clients update their bookmarks. It is particularly useful for APIs or applications where maintaining the original request method (e.g., POST, PUT) is critical, as it prevents method changes that can occur with other redirects like 301. Use it in scenarios like migrating web pages or updating endpoints to avoid breaking client integrations.

Compare HTTP 308 Permanent Redirect

Learning Resources

Related Tools

Alternatives to HTTP 308 Permanent Redirect