308 Permanent Redirect
Permanent redirect that keeps the method and body.
Common causes
- Permanent redirect that keeps the method – common when an API path changes
How to fix
- Use 308 instead of 301 when clients send POST / PUT to the old URL
- Google treats 308 like 301 for SEO
Detailed reference (MDN) ↗RFC 9110 §15.4.9 ↗
Which code should I use?
- 301 / 308: Both are permanent redirects. Browsers may turn a POST into GET with 301; 308 keeps the method and body. Normal pages: 301; APIs or POST forms: 308.
