308Status code
3xxRedirection
YesCacheable by default
RFC 9110 §15.4.9Defined in
Common causes
- Permanent move of API endpoints
- HTTPS redirect for non-GET traffic
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);