DevKits
308

Permanent Redirect

3xx Redirection

Last updated:

Like 301 but explicitly preserves the request method.

Description

The method-preserving counterpart of 301. Search engines treat it equivalently to 301 for link equity, and clients preserve the original method (POST/PUT/DELETE) at the new URL.

When to use

Use 308 for permanent redirects of non-GET endpoints.

Specification

RFC 7538

Examples

HTTP response
HTTP/1.1 308 Permanent Redirect
Content-Type: application/json

Location: /new-url
Node.js (Express)
res.status(308).redirect("/new-url");
Go (net/http)
w.WriteHeader(http.StatusPermanentRedirect)
Python (Flask)
return jsonify({"error": "Permanent Redirect"}), 308

Related status codes

All 3xx codes