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:
- Login to your cloud control panel.
- Click manage on the site you would like to add the redirect to.
- Click on the Domain Alias icon and then click Add New Domain Alias.
- Follow the instructions to complete.
Next, you will now need to add the 301 redirect code into your .htaccess file.
- Click on File Manager icon, click public_html.
- Right click and select Edit File.
- 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.