301 redirect: why it has an impact on SEO
Without redirects, many sites would risk losing their positioning in search engines: the 301 redirect avoids this type of inconvenience by preserving the SEO value of a page.
The advantage of a permanent redirect For many reasons, we may have to create new URLs: when redesigning a site, for the comfort of navigation or to improve an organic referencing strategy (SEO). Anyway, the purpose of this 301 redirect is to indicate to the robots responsible for indexing web content the new address of a page: thus, the latter retains all its value, in particular by displaying the same PageRank . The ranking in search engines is therefore not altered, which is fundamental for sites generating income: if the 301 did not exist, URL changes would constitute an undeniable drop in turnover!
The 301 redirect by the .htaccess file There are several techniques based on the same data: we indicate to search engines that the old address can be deleted because its content has moved to another address. It is also possible to redirect a domain name (i.e. the entire site) to another, through the .htaccess file. In this case, the following code is enough to set up the permanent redirection. This file will be saved under the name “.htaccess” in txt format, preferably UTF. All that remains is to transfer it to the server via ftp, at the root of the site. Several equivalents of the term “301 redirect” are functional: “Redirectpermanent” and “Redirect permanent” guarantee the same result. To change the location of a deep page, just notify the old and new URL.
Permanent Redirection in PHP This method allows you to create redirections from a specific page to another. For the php language, the line of code must be integrated in the first line of the header, before any other data (not even a space will precede this piece of code!).Why are we talking about 301 redirection? There are several types of redirects with each having unique characteristics. Unfortunately, the most common mistake is to confuse the 301 with its fellow 302! However, there is a major difference between these 2 elements: the 301 redirect informs that content has been permanently moved, while the 302 concerns temporary address changes. The latter avoids causing damage during certain tests aimed at perfecting a site but should not be used in the long term, at the risk of losing the value of the original URL.To boost certain sites, SEO experts use the 301 redirect as a “hyperpowerful” backlink… to be tested!