How a 302 redirect works
The server answers a request for the source URL with status 302 and a Location header. The browser or crawler then requests the destination.
HTTP/1.1 302 Found
Location: https://seoenergy.org/en/temporary-service-page/
The response does not mean that the destination is an error or a duplicate by itself. It describes the planned duration of the move: the source URL is expected to return as the primary location. Under modern HTTP semantics, clients may change a POST request to GET when following a 302. Applications that must preserve the method should consider 307 instead.
Appropriate temporary use cases
- A short A/B test sends some requests to a variant.
- A service or product page is temporarily unavailable.
- A campaign has a temporary destination and the source will return.
- A maintenance flow needs a temporary information page.
- A regional or device experience is being tested without replacing the main URL.
The destination should still serve a clear purpose for the user. Temporary does not justify sending crawlers and people to irrelevant content or creating different deceptive destinations.
302 vs 301 redirect
A 301 states that the move is permanent and signals that the destination should become canonical. A 302 states that the change is temporary and is intended to preserve the source URL as the main address. For a site migration, domain change, merged page, or permanent URL cleanup, use a 301 or 308. For a reversible test or short interruption, use a 302 or 307. The choice should reflect the real plan. Search engines can interpret behavior over time, but relying on them to correct an inaccurate status creates uncertainty.
How search engines treat temporary redirects
Google follows temporary redirects. Its indexing pipeline does not normally use the redirect itself as a signal that the target should replace the source as canonical, although other signals can still lead to the target being indexed. That is why a temporary redirect can be useful when the source should remain the stable public URL. The crawler can reach the temporary destination without being told that the original address has permanently moved. Results are not guaranteed per request or on a fixed schedule. Search systems combine the redirect with links, canonicals, sitemaps, content, and the length of time the configuration remains in place.
What happens when a 302 remains long term
A long-running temporary redirect can eventually be interpreted as a permanent move. Google has confirmed that its systems may treat a persistent 302 this way. There is no published number of days after which the meaning changes. If the destination has become permanent, update the response to 301 or 308 and align the rest of the site’s signals. Leaving an old temporary rule in place also creates maintenance risk. Future teams may not know why it exists, and the destination can later move or disappear.
302 redirects and canonical signals
A temporary redirect is one signal among several. A canonical tag on the destination, internal links to the destination, and inclusion of the destination in sitemaps can conflict with the intention to preserve the source. For an A/B test, keep the original page canonical and use a temporary redirect to the variant. For a temporary outage, avoid changing every internal link to the temporary page unless it is meant to become a lasting part of the architecture. Check the actual behavior in Search Console rather than assuming a status code controls the index in isolation.
Implementation methods
Configure the response at the server, application, CMS, or edge layer. Server-side redirects are the clearest option because the status and Location header arrive before page rendering. Make the rule narrow enough to affect only the intended source. Preserve required query parameters, avoid redirects based on unstable client data, and document the condition that will remove the rule. Use 307 when request-method preservation matters. A 302 is common for normal page navigation, but method behavior can matter for forms and APIs.
How to test a 302 redirect
- Request the source without browser cache and record the first response.
- Confirm the status is 302 and Location points to the intended temporary URL.
- Verify the destination returns useful content and a final successful response.
- Check for chains, loops, lost parameters, and unexpected method changes.
- Inspect canonical tags, internal links, and sitemaps for conflicting permanence signals.
- Set a review date so a temporary rule does not become forgotten infrastructure.
When a site migration should use 301
A normal site migration changes the lasting URL of content. It should use permanent redirects so users and search engines can replace old addresses with their new equivalents. A 302 is appropriate only when the move itself is temporary and the original site or URL will return. Fear of losing ranking signals is not a reason to label a permanent move as temporary.
Common 302 mistakes
- Using 302 for a permanent domain or URL migration.
- Leaving a short experiment active for months without review.
- Redirecting to a page that does not satisfy the source intent.
- Creating chains from old temporary rules.
- Combining a temporary redirect with permanent canonical and sitemap changes by accident.
- Assuming search engines will always keep the source indexed.
FAQ
What does a 302 redirect mean?
It means the requested resource is temporarily available at the URL in the Location header and the source is expected to remain the lasting address.
When should you use a 302 redirect?
Use it for a reversible test, temporary outage, or short-lived destination when the original URL will return.
Does a 302 redirect affect SEO?
It can affect crawling and which page users reach. Search engines normally treat it as temporary, but they consider other canonical signals and long-term behavior too.
Can a 302 redirect become permanent?
Search engines may interpret a long-running 302 as a permanent move. There is no fixed published deadline, so change the status when the move becomes permanent.
Should a site migration use 301 or 302 redirects?
Use 301 or 308 for a lasting migration. Use 302 or 307 only when the old URLs genuinely will return as the primary locations.