A 302 redirect is an HTTP status code indicating that a page has been temporarily moved to a different URL. Unlike a 301 redirect (permanent), a 302 redirect tells search engines that the original URL should be kept in the index.
When should you use a 302 redirect?
- Maintenance mode: when you want to temporarily redirect traffic whilst working on a page.
- A/B testing: to temporarily send visitors to an alternative version of a page.
- Seasonal content: when you want to temporarily display a different landing page.
302 vs 301 redirect
The key difference is that a 301 redirect is permanent and transfers SEO value to the new URL, whilst a 302 redirect is temporary and keeps the SEO value with the original URL. Only use a 302 if you intend to restore the original URL.
302 redirect in WordPress
In WordPress you can set up 302 redirects via plugins such as Redirection or Yoast SEO Premium. You can also manually add a redirect to your .htaccess file or through your hosting control panel.