Avoid being penalized with broken links on your web thanks to do a 301 redirect
When we have a relatively serious web project, it may be that, for various reasons, we are interested in doing what is known as making a 301 redirect. An action that is nothing but, as its name suggests, a journey from one direction to another users accessing your website.
How to do a 301 Redirect htaccess ?
This is usually done to not lose traffic migration, and thus provide no broken links to search engines, and also to carry a given traffic somewhere on your website, or another website, in which it positions other interests. But, what are the systems that can be performed is a 301 redirect?
Such redirects can do with the code. To do this we need to have little knowledge of htaccess and ftp. And is that what we have to do is follow the following steps.
- First, access the root directory of your site through a simple ftp, ftp A surely include your hosting but can also use some alternative means such as FileZilla.
- Then you will have to edit a file called. htaccess in which you will have to set the 301 redirect as follows.
Finally, you just have to upload the file to the root directory and you will be prepared different redirects on your site.
301 redirect with WordPress
However, as was to be expected, and considering that WordPress is one of the CMS that more has been imposed for a while now, it was not surprising that there was a plugin that make our lives a lot in this regard.
To do this we have to do is download the plugin Simple 301 redirects. A plugin that, as we shall see, has a really simple interface that will be able to set all redirects we need.
Once you have installed this plugin, we must activate to display the next screen you have to enter the current address and new address to which we send our traffic.
As you can see, both as a means another procedure are quite simple especially if you decide to do with WordPress. There are more plugins to use WordPress to do a 301 redirect, have chosen this for simplicity of use. One drawback is to be made of one to one url, which in the case of a lot may be a little bummer, for these situations there are other plugins such as Simple 301 Redirects – Addon – Bulk Uploader which lets you upload CSV file with a list of urls to which they want to implement the 301 redirect.
As always if you have any doubts let a comment and answer as soon as possible.
How to do a 301 Redirect htaccess ?
No comments:
Post a Comment