What Are 302 Redirects?
A 302 redirect informs search engines that a website or page has been moved temporarily. It is a method for redirecting a URL to a different location.
When this status code arises (in the event of a website temporarily changing location), the web browser will automatically redirect the user to a new URL specified in the location field. It is the responsibility of the search engine to determine whether to keep the old page in question or to replace it with a website found at the new location.
302 Redirects are significant when a web page has moved, in which case users need to be able to find the site they’re looking for. A redirect automatically forwards the user to a new website, yet when sites move they can often drop out of search rankings for months at a time.
301 vs 302 - What’s the Difference?
From a user perspective, 301 and 302 redirects seem to work in the same way. However, search engines have an alternative view, being able to sense different types of redirects and handling them accordingly.- A 301 redirect occurs when a page has permanently moved to a new location.
- A 302 redirect occurs when a page has temporarily moved elsewhere.
When is it Time to Use 302 Redirects on Your Website?
You can create a 302 redirect using Javascript or a meta tag. This is considerably less effort than creating a 301, which requires special commands. Users often mistake 302 redirects for 301 redirects, something that’s recognized by Google. 302s are used to redirect users to a new site for a short period. You would typically use a 302 redirect when you’re updating your website, or perhaps redesigning it. You should only really use a 302 when you intend to bring back your old page, since a 302 signals a temporary move. Another use for a 302 is when you’re testing out a new page and are seeking consumer feedback. In this instance, you can do so without hurting the rankings from your original page.302 Redirects Impact on SEO
When you redirect a page using a 302, the qualities of the redirected page are not passed onto the new location. However, the redirected page will retain its Page Authority, PageRank, MozRank, and Traffic Value, though the detour page won’t accumulate any. Accidentally using a 302 can impact your website’s search engine visibility, which is why many SEO experts decide against using them when editing a website. As previously mentioned, the correct usage of a 302 is for testing a new page for client feedback. In this instance, doing so won’t impact your old page’s rankings. Using 302s in this context won’t disrupt your SEO efforts. Google will appreciate the move is temporary and will thus not transfer any value to the new URL. Problems tend to arise when users fail to realize the difference between a 301 and 302, which is why it’s important to differentiate between the two.How to Implement 302 Redirects
There are two main methods for implementing 302 redirects, which depend on the type of server you’re using:Websites on Unix/Apache Servers:
For the sake of this example, let’s imagine your website is hosted at www.abc.com- FTP into your website
- In the root folder, download and then create a copy of the .htaccess file.
- Save it in a backup folder (in case you make a mistake)
- Open the .htaccess file in a program like Notepad++
- In a new line at the bottom of the existing code, put in the redirect using the following as a template: redirect 302 /OldPage/NewPage
- Save and upload the file to your server.
- Test the redirect by visiting abc.com/OldPage.html
- If you’re sent to the html, you’ve been successful
Websites on Windows Servers:
Like before, let’s imagine your website is www.abc.com 1. Place a page at the position of the old address (http://abc.com/OldPage.asp) 2. Place the following code above the tag:
<%@ Language=VBScript %>
<%
Response.Status=”302 Found”
Response.AddHeader “Location”,”http://abc.com/NewPage.asp”
%>
3. Upload the new page and test it by visiting the old URL
4. See whether you’re redirected properly, in which case you’ve been successful
Thanks for reading this article! We hope to have been brought you up-to-speed on the concept of redirects. If you need help with implementing redirects on your website - let us know! Our technical SEO consultant will be more than happy to help you.