tsoHost Help Centre

Table of Contents

How to setup a 301 redirect

Updated Nov 28th, 2017 at 14:18 GMT

A redirect allows you to send both users and search engines from one URL to a different URL.

For example you can set up a redirect for yourdomainname.co.uk to redirect to yourdomain.uk.

A 301 tells search engines that a redirect is permanent and that the SEO juice from the old domain should be passed on to the redirected page. Typically between 90-99% of the ranking power is passed on.

You will firstly need to setup a domain alias to be added for the yourdomain.co.uk domain.
To do this:

  1. Login to your cloud control panel.
  2. Click manage on the site you would like to add the redirect to.
  3. Click on the Domain Alias icon and then click Add New Domain Alias.
  4. Follow the instructions to complete.

Next, you will now need to add the 301 redirect code into your .htaccess file.

  1. Click on File Manager icon, click public_html.
  2. Right click and select Edit File.
  3. Paste the following code at the top of your .htaccess file:

RewriteCond %{HTTP_HOST} ^www.tsotraining.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk$
RewriteRule ^ http://www.yourdomain.uk [R=301,L]

The above code will take any user who visits www.yourdomain.co.uk or yourdomain.co.uk and redirect them to www.yourdomain.uk.