How to setup a 301 redirect

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.mydomain.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.

  • domain, 301, redirect, htaccess
  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Domain (Transfer) Secret or Authorization (Auth) Code and How to Obtain it from your Current Registrar?

A Domain (Transfer) Secret or Authorization (Auth) Code is a code assigned by the Registrar at...

Transferring a .UK Domain Name

Before proceeding with the Transfer of your .UK domain name, you are advised to confirm if your...

What nameservers do I use for the Cloud Hosting?

The nameservers for our Cloud Platform are: ns1.in2computing.com ns2.in2computing.com

How to add srv records to the Cloud and cPanel?

Services such as Office365 often require a SRV record to be created. This guide will instruct you...

How do I point my domain to hosting I have elsewhere?

If you have registered a domain name with us but would like your site to be hosted elsewhere,...