302 Status Code: What It Is + Its Impact on SEO

By kcook@hubspot.com (Karla Cook)

→ Download Now: SEO Starter Pack [Free Kit]

If you’ve spent any time on the internet, chances are you’ve encountered an HTTP status code.

In simple terms, HTTP status codes are standard response codes that show the relationship between all the things that go on in the background when you travel from web page to web page. Things like the user agent (i.e., your web browser), the server, the web page you’re trying to load, and any third-party web applications you might be running.

Because of the complexity of how all those elements interact, there are many possible HTTP status codes you can run up against.

HTTP status codes identify and diagnose the particular blocker preventing you from loading a resource, and can give you information about the journey you took on the way to a page.

In this article, we’ll cover what you need to know about the HTTP 302 status code – jargon-free.

For starters, it’s helpful to know that all HTTP messages with 3xx are redirection messages.

Say blog.hubspot.com no longer exists, and the content is now permanently housed on blogging.hubspot.com. This would trigger a 301 status code, which indicates a permanent redirection from one location to another.

The 302 redirect, on the other hand, is only temporary. A good example of when to use a 302 status code is for localization and language purposes.

For instance, if you visit a clothing website based in the United Kingdom but you are located in the United States. A 302 redirect would send you to the US version of the site to ensure the currency and other content are displayed correctly, according to your location.

You can also use a 302 status code when:

  • Redesigning a page – You can send users to a temporary location while the other page is under construction.
  • Conducting A/B tests – Want to test a new page and get feedback on its performance? You can do this with a 302 redirect without hurting your ranking.
  • Running a promotion – To drive traffic to a particular offer, you can set up a temporary redirect for a page that usually includes other content.
  • A product is sold out – In the case of a sold-out or temporarily unavailable product, you can redirect users to a related page until it is available again.

While this list is not exhaustive, here’s the golden rule to keep in mind: Only use a 302 redirect if the change is temporary.

Furthermore, a 302 status code happens on the server-side and shouldn’t be noticed by users if set up correctly. The web server serving up the 302 redirect will immediately indicate the new location of the page to your browser (and search engines) and should send users there right away.

How a 302 Status Code Affects SEO

From an SEO perspective, it’s important to understand how a 302 status code can impact your ranking and when you should use it.

Firstly, if the location of a page …read more

Source:: HubSpot Blog

      

Aaron
Author: Aaron

Related Articles