blog posts

What is redirect 301 and what is its use?

Redirect means to change the path. This change of direction for website pages is done for various reasons. A 301 redirect is a type of redirect where, in addition to redirecting visitors, search engine crawlers also consider it as a permanent redirect and transfer the validity of the old page to the new page. This article will discuss the 301 redirects and explain what it is used for. We invite you to stay with us until the end.

What is a 301 redirect?

When we want to change the URL or domain, we need a 301 redirect to transfer the validity of the old pages to the new ones. In addition to redirecting users and bots, 301 redirects also transfers page credit (both good credit and bad credit), which is one of the topics of internal SEO. In redirect 301, the changes may be as follows:

  • Changing the URL on a site – for example, redirecting from page A to page B
  • Change the protocol of a site – redirect from http to https and vice versa
  • Redirecting from one site page to another site page
  • A combination of the above

Depending on the conditions, we can use the above for 301 redirects. 301 redirects are usually used for the following:

  • Install or remove SSL security certificate
  • Change the address and structure of the site pages
  • Changing the address of one site to another
  • Transferring old and unused pages to new and high-quality pages

The impact of 301 redirects on-site SEO

Every page that is indexed in Google (recorded in Google results) has a credit. This credit can be negative or positive and its amount can be low or high. Based on this credit, the ranks in Google results are determined. In fact, any page with higher credibility according to Google’s criteria will have a higher rank in the results. If we want to change the address for a page that has a high authority in Google without a 301 redirect, its authority will be lost and it will become an invalid page. Therefore, to transfer this credit, we must use a permanent redirect or 301.

Redirect 301
301 redirect

As you can see in the above image, in redirect 301, in addition to changing the address, transferring users and bots, the credit of the page is also transferred, but in redirect 302, all redirect 301 cases are done except transferring credit.

301 redirect training

301 redirect can be done manually or through plugins and programming. In this article, permanent 301 redirect with htaccess and Yoast SEO plugin is taught. If you plan to use an SSL certificate on your WordPress site, we suggest that you read the instruction on how to install SSL on WordPress , where the method of redirecting the site from http to https protocol is fully taught. We also suggest that you read the following two articles.

Teaching how to change the site domain in WordPress / Teaching how to change the domain from http to https in Google Webmaster

In the continuation of the 301 redirect tutorial, you will be taught manually with htaccess.

Suppose we want to redirect a page like domain.com/1 to domain.com/2. In this case, you should enter the following value in htaccess so that page 1 is transferred to page 2 as a 301 (permanent).

Redirect 301 /1 /2 

Suppose we want to redirect a page like domain.com/1 to domain.net/2. In this case, you should enter the following value in htaccess so that page 1 is transferred to page 2 as a 301 (permanent).

Redirect 301 /1 http://domain.net/2 

Finally, if you have any questions or doubts in this regard, please raise them in the comments section so that they will be answered