If you want to change the page or URL the location of a file but you are worried

What is the use of 301?

A redirection as its name says, is an automatic reference or change, practically transparent for the user, which is done at the code level and that allows indicating the permanent location of the new article or note.

In what cases should a redirection 301 be used? 

When the change of location is permanent, either because the URL has been slightly modified, for example, if the product was in www.tienda.com/index.php/product2.html And now it will be only href = "http://www.tienda.com/product-escoba"> www.tienda.com/product-escoba

It can also be used before a change of name, brand and therefore domain so as not to lose the traffic that seeks us with the other domain. Example, before the website was www.tiendaorrior.com and now it will be www.mlicks.com.mx

How is a redirection 301 (permanent)?

The answer is simple, however, it should

The first option is to edit file by file each URL that we seek to change, with the possible amount of work that implies.

here the example of redirection in PHP

?>

or if you use Linux as most websites the procedure can be easier from the HTACESS file, just add a line like it is in the file:

redirect 301 /url_terior.html http: // domain.com/url-nueva/

As you can see in the example the domain could be changed or not, it is enough to indicate it and thus the HTACESS file will process the new requests.

If you are not familiar with the code editions beyond changing small elements in a CMS, we highly recommend approaching an expert in the language that your website is developed, PHP for example.

If you have doubts, leave a comment on this blog and we will surely guide you how to achieve it on your own.