Blog Post

302


302: A 302 error code or 302 redirect is an HTTP response status code that indicates a file has been found, but is temporarily located at a different URL.

HTTP responses that display 302 redirects provide a URL in the location header field and invite the user to click on the new link, which essentially results in sending the same request being sent over again.

It's a common method for URL redirection, but in terms of SEO, it's best to avoid 302 redirects. Search engines often struggle to handle and index redirects and it can even cause your site to fall in search engine rankings.

The HTTP/1.0 specification was the first to define this code using the phrase "Moved Temporarily." Since then, several web browsers have used the code incorrectly, changing the type of request or defining it inconsistently. As a result, HTTP/1.1 added two new status codes, 303 and 307, to distinguish between GET and SEND behaviors. However, 302 is still employed by many websites since older browsers may not be up to date on HTTP/1.1.

For a brief period, Google advised websites to use 302 redirects when distinguishing smartphone URLs and desktop URLs, but recently their policy changed to recommend using 301 redirects.