Explain is 301 or 302 redirection

Explain is 301 or 302 redirection.

1 Like

HTTP 301 redirection: The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response.

  • A 301, “moved permanently,” redirect is a set of instructions which are executed when the request hits the server, automatically re-routing to a different page.
  • This specific type of redirect tells the system that the page has moved permanently to a new page on your site.
  • 301 redirects should be used when a page is no longer relevant, useful or has been removed.
  • It is very important to redirect any old URLs that won’t be staying the same on a rebuild of your website.

HTTP 302 redirection: A 302 redirect means that the move is only temporary. Search engines need to figure out whether to keep the old page or replace it with the one found at the new location.

  • One of the most common HTTP status codes is HTTP 302. This status occurs when a resource or page you’re attempting to load has been temporarily moved to a different location – via a 302 redirect.

  • When used correctly, a 302 redirect will not hurt your SEO efforts. When you choose this type of redirect, the original page remains indexed in Google and no value (link equity) is transferred to the new URL because Google knows this is just temporary.