What Are 302 Redirects?
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.
302 Redirects Impact on SEOWhen 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 RedirectsThere 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