📚 Quick Definition
The target resource resides temporarily under a different URI. Since the redirection might be changed, the client should continue using the original URI for future requests. Unlike 301, this redirect signals that the move is not permanent and the original URL should remain the canonical location.
⏱ When It Occurs
A 302 Found response is returned when the server wants to temporarily redirect the client to a different URL. The key distinction from 301 is that this is a temporary situation - the original URL is still considered the correct, canonical location. Search engines will keep the original URL in their index.
🛠 Common Use Cases
- A/B testing redirects (sending some users to variant pages)
- Maintenance page redirect (temporarily sending users to a maintenance notice)
- Login redirect (redirecting unauthenticated users to a login page, then back)
- Language or locale redirect (sending users to their regional version)
- Temporary promotional redirect (holiday sale page, limited campaign)
- Load balancing between servers
✅ Best Practices
- Use 302 only for genuinely temporary redirects - use 301 for permanent moves
- Search engines keep the original URL indexed, which is the desired behavior for temporary situations
- Be aware that 302 may change POST to GET - use 307 to guarantee method preservation
- Don't use 302 for permanent URL changes - this can confuse search engines and waste link equity
- Consider user experience when using redirect chains - each hop adds latency
📡 HTTP Example
GET /promo HTTP/1.1 Host: www.example.com
HTTP/1.1 302 Found Location: https://www.example.com/sale-page Cache-Control: no-cache