302Status code
3xxRedirection
NoCacheable by default
RFC 9110 §15.4.3Defined in
Common causes
- Login redirect
- Temporary maintenance page
- A/B test or geo redirect
What to do
Use 302 or 307 for temporary moves only; long-lived 302s confuse caching and indexing.
Example response
HTTP/1.1 302 Found Location: https://example.com/new-path Content-Length: 0
How to send a 302
nginx return 302 https://example.com/new-path;
Apache Redirect 302 /old https://example.com/new-path
Express res.redirect(302, '/new-path');
PHP header('Location: /new-path', true, 302);