Skip to main content
miji.be

308 Redirect

A permanent HTTP redirect that preserves the original request method, combining the permanence of 301 with the method preservation of 307.

May 1, 2026 / About 1 min read

Redirect

A 308 redirect is an HTTP status code that indicates a permanent redirect while preserving the original request method. It combines the permanence semantics of a 301 with the method preservation guarantee of a 307. If a POST request receives a 308 response, the browser must resend the POST to the new URL, and it should use the new URL for all future requests.

The 308 status code was defined in RFC 7538 to fill a gap in the HTTP specification. Before 308, there was no way to indicate a permanent redirect that preserved the request method. The 301 code, while permanent, allowed browsers to change POST requests to GET. The 308 code provides a clean solution for scenarios requiring both permanence and method preservation.

In practice, 308 redirects are used in API versioning, permanent endpoint migrations, and HTTPS enforcement where POST requests must be preserved. For URL shortening services, 308 is rarely needed since most redirects involve GET requests from browser navigation.

Browser support for 308 is now universal across modern browsers, though older clients may not handle it correctly. When targeting a broad audience, it is important to verify that the client population supports 308 before relying on it.

Was this article helpful?

Related Terms

307 Redirect

A temporary HTTP redirect that preserves the original request method, ensuring POST requests are not converted to GET.

301 Redirect

A permanent HTTP redirect that tells browsers and search engines the resource has moved permanently to a new URL.

HTTP Status Code

A three-digit number returned by a web server indicating the result of a client's request.

302 Redirect

A temporary HTTP redirect indicating the resource is temporarily located at a different URL.

Response Code Negotiation

A design technique that dynamically selects the HTTP status code returned during redirects based on client type and request conditions.

404 Not Found

An HTTP status code indicating that the server cannot find the requested resource at the specified URL.

Related Articles

301 vs 302 Redirects - Choosing the Right Type for Short URLs

Understand the differences between 301 and 302 HTTP redirects. Learn how each type affects SEO, analytics, and performance for short URLs.

How URL Shorteners Work - The Technical Side of Redirects

Discover the technical mechanics behind URL shortening: hash generation, database lookups, HTTP redirects, and more. Includes HTTP response examples and base-62 encoding calculations.

Self-Hosting a URL Shortener: Full Link Control

Explore the benefits and challenges of running your own URL shortening service. Covers open-source tools, serverless architecture, and cost-performance tips.

FAQ

When should 308 redirects be used?
For permanent URL changes where POST request methods need to be preserved. Commonly used for API endpoint migrations.
What's the difference between 308 and 301?
Both are permanent redirects, but 308 preserves the request method. With 301, the method may change, and POST requests might be converted to GET.

Put the terms to work

Shorten a URL for Free