✨ Get 25% OFFon any plan. Use the coupon:

What a 302 redirect is and when to use it

By Tiago CostaUpdated on July 2, 2026

Illustration of a dashed arrow with the number 302 and a clock linking one site to another, representing a temporary redirect.
Definition

A 302 redirect is an HTTP code that points one URL to another temporarily. In practice, it:

  • signals that the address change is temporary;
  • keeps the original URL indexed in Google;
  • does not consolidate authority on the new URL permanently;
  • is meant for tests, maintenance and temporary detours.

What a 302 redirect is

A 302 redirect is a server response that sends the visitor from one URL to another, warning that the change is temporary. The number 302 is an HTTP status code from the 3xx family, used precisely for redirects. When the browser or search engine receives this code, it gets the message: the content is elsewhere for now, but the original address should return.

In the original protocol specification, the 302 appears under the name 'Found'. The user almost never notices they passed through a 302, because the detour is instant and transparent. The difference is hidden in the response header, which only programs and crawlers read.

That 'temporary' detail seems small, but it completely changes how Google treats the URL. That is where all the difference between a 302 and a 301 lives.

302 and 301: the difference that changes everything in SEO

The most common question about the 302 is how it compares to the 301 redirect, which is permanent. Both send the user to another page, but the message they pass to the search engine is opposite:

Aspect301 redirect302 redirect
TypePermanentTemporary
Indexed URLBecomes the new oneStays the original one
Authority (link juice)Transferred to the destinationKept on the original URL
Typical usePermanent URL migrationTest, maintenance, promotion

In short: use 301 when the change is forever and you want the new address to inherit the page's history. Use 302 when the original address will return and you do not want Google to swap the indexed URL. Choosing the wrong code is one of the technical SEO slips that most often cause loss of positions.

Infographic comparing the permanent 301 redirect, which swaps the URL and passes authority, with the temporary 302, which keeps the URL and holds the authority.
301 and 302: the differences between the permanent and the temporary redirect, side by side.

What Google does with a 302 redirect

When Google finds a 302, its goal is to preserve the source URL. Because the change is declared as temporary, the search engine tends to:

  • Keep the original URL in the index: it remains the version shown in search results.
  • Hold the authority on the source: the link juice the page built up does not permanently move to the destination.
  • Crawl the destination: the crawler follows the detour to see the content, but without treating the new URL as the main one.

The point to watch is time. If a 302 stays live for many months, Google understands that, in practice, it has become permanent and may start treating the detour as a 301, consolidating the signals on the destination. In other words, a 302 kept by mistake ends up behaving like a 301, only in an unpredictable way and without the control you would have by setting the right code from the start.

When to use a 302 redirect

The 302 has legitimate and important uses. It is the right choice whenever the address change is truly temporary. Some classic scenarios:

  • A/B tests: divert part of the traffic to an alternative version of the page without losing the original URL in the results.
  • Maintenance: send visitors to a notice page while the original is briefly offline.
  • Seasonal promotions: point a fixed URL to a campaign landing page that will go offline later.
  • Redirect by language or region: send the user to the right version without fixing it as permanent.

The golden rule is simple: if the original address will be the main one again, use 302. If the old page will never exist again, the right choice is the 301 redirect. In that second case, it is often worth reviewing the canonical URL as well, to reinforce which version should be indexed.

Illustration of a site under maintenance with a dashed arrow detouring to a temporary notice page.

302, 307 and the other 3xx codes

The 302 is not alone in the 3xx family. A few similar codes tend to cause confusion:

  • 301 (Moved Permanently): permanent detour that transfers authority and swaps the indexed URL.
  • 302 (Found): temporary detour that keeps the original URL.
  • 307 (Temporary Redirect): a stricter version of the 302 that forces the browser to repeat the request method (for example, a POST stays a POST).
  • 308 (Permanent Redirect): the permanent equivalent of the 307.

For day-to-day SEO, what matters is the 301 and 302 pair. The 307 and 308 codes show up more in technical contexts, such as forms and security headers. Knowing the full list helps you read the HTTP status code reports without surprises.

How to set it up and which mistakes to avoid

Setting up a 302 depends on your stack. On Apache servers, it is usually defined in the .htaccess file; on Nginx, in the site's configuration block; and on platforms like WordPress, through redirect plugins. In all cases, the secret is to declare the right code (302, not 301) for the temporary intent.

Two mistakes show up often and are worth avoiding:

  • Using 302 for a permanent migration: the classic one. The page changes for good, but the temporary detour holds the authority on the old URL and blocks the position gains on the new address.
  • Stacking detours: a 302 that points to another that points to a third creates a redirect chain, which wastes crawl budget and slows everything down.

Reviewing the site's redirects periodically, making sure each one uses the proper code and points straight to the final destination, is the kind of invisible maintenance that protects your technical SEO over time.

FAQ

Frequently asked questions

What is a 302 redirect?

A 302 redirect is an HTTP status code that sends the visitor from one URL to another temporarily. It tells the search engine that the change is passing, so Google keeps the original URL indexed and does not transfer authority permanently to the new address.

What does the 302 error mean?

Despite the name, the 302 is not exactly an error. It is a response code from the 3xx family (redirects) that indicates the page was found at another address temporarily. It only becomes a problem when it is used in place of a 301, in a change that should be permanent.

What does the 302 code mean?

The 302 code, called 'Found' in the protocol specification, means the requested resource is temporarily at another URL. The server asks the browser to go to the new address now, but keeping the original as the main reference.

What is the difference between a 301 and a 302 redirect?

The 301 is permanent and the 302 is temporary. In practice, the 301 transfers the page's authority and makes Google swap the indexed URL for the new one; the 302 keeps the original URL in the index and holds the signals there. That is why the 301 is right for permanent migrations and the 302 for passing detours.

Is a 302 redirect bad for SEO?

No, as long as it is used in the right context. For temporary situations, the 302 is the correct choice. The problem arises when it is applied to a permanent change, because then the authority stays stuck on the old URL and the new address takes longer to rank. In those cases, the 301 is the right one.

Technical SEO under control, effortlessly

Automarticles takes care of your blog's content from start to finish, creating optimized, well-structured articles to help your site climb on Google.

Start free trial
Keep learning

Related concepts

301 redirectThe 301 redirect is the type of permanent redirect that sends both the visitor and the search engine from an old URL to a new address, signaling that the change is definitive. Besides keeping people from landing on a nonexistent page, it passes most of the authority accumulated by the original URL to the new one, which makes it the correct way to change address, domain or site structure without losing positions on Google.HTTP status codeAn HTTP status code is the three digit number a server returns for every request made by a browser or a search bot, reporting the outcome of that request. It is organized into five classes: 1xx (informational), 2xx (success, like 200), 3xx (redirection, like 301), 4xx (client error, like 404) and 5xx (server error, like 500). In SEO, these codes tell search engines whether a page can be indexed, was moved or went offline.Redirect chainA redirect chain is a sequence in which one URL redirects to another, which in turn redirects to a third, and so on, before reaching the final destination. Each extra hop adds load time, spends crawl budget and dilutes the authority passed by links. Ideally any URL should redirect only once, straight to the final address, with no intermediate steps.Canonical URLA canonical URL is the preferred version of a page when several addresses hold identical or very similar content. It is signaled to the search engine by a canonical tag (rel=canonical) in the HTML or by other signals, telling it which URL should be treated as the original, the one that appears in search and concentrates the authority of the links. It is the main tool for solving duplicate content without deleting pages or harming the user experience.