What Does HTTP 302 Found Mean?
HTTP 302 Found (originally called "Moved Temporarily") indicates that the requested resource is temporarily located at a different URL, provided in the Location header. Unlike a 301, the client should continue using the original URL for future requests because the redirect is not permanent.
Browsers follow 302 redirects automatically but do not cache them as aggressively as 301s. Search engines keep the original URL in their index rather than replacing it with the redirect target.
Historically, many browsers converted POST requests to GET when following a 302 redirect. This behavior was technically incorrect according to the original HTTP spec. The 303 See Other and 307 Temporary Redirect codes were introduced to address this ambiguity.
Common Causes
- Login redirects: A user hits a protected page, gets 302 redirected to
/login?redirect=/dashboard, then after authentication gets 302 redirected back to the originally requested page. - A/B testing and experiments: A percentage of traffic is temporarily redirected to variant pages. The original URL must remain canonical since the experiment will end.
- Geo-based content serving: A global URL like
/storetemporarily redirects to/store/deor/store/usbased on the user's location. The base URL is still the canonical reference point. - Maintenance mode: The site temporarily redirects all requests to a maintenance page while updates are being deployed. This is temporary and should not affect search engine indexing.
- Language negotiation: A root URL redirects to a language-specific version based on the
Accept-Languageheader. The redirect target may vary per user.
How to Configure 302 Redirects
Nginx
Apache (.htaccess)
Express.js (Node.js)
Verifying with curl
302 vs 301: Choosing the Right Redirect
The wrong redirect code can hurt your SEO or cause unexpected caching behavior:
- Use 301 when the URL change is permanent: domain migrations, URL restructuring, HTTP-to-HTTPS.
- Use 302 when the redirect is temporary: maintenance, A/B tests, login flows, seasonal content.
- Common mistake: Using 302 for permanent URL changes. Google will keep the old URL indexed and may not transfer link equity. If you see a 302 that has been in place for months, it should probably be a 301.
- Use 307 when you need a temporary redirect that preserves the HTTP method (POST stays POST).