308 Permanent Redirect

HTTP 308 Permanent Redirect is a 3xx redirection status. Like 301, but the method and body must not change when following the redirect.

308Status code
3xxRedirection
YesCacheable by default
RFC 9110 §15.4.9Defined in

Common causes

What to do

Treated by search engines like 301.

Example response

HTTP/1.1 308 Permanent Redirect
Location: https://example.com/new-path
Content-Length: 0

How to send a 308

nginx    return 308 https://example.com/new-path;
Apache   Redirect 308 /old https://example.com/new-path
Express  res.redirect(308, '/new-path');
PHP      header('Location: /new-path', true, 308);

Other 3xx codes

Frequently asked questions

What does HTTP 308 mean?
Like 301, but the method and body must not change when following the redirect.
Is 308 an error?
No. 3xx codes are redirection responses, not errors.