Tsohost Knowledge Base

How to create a 301 redirect

Modified Monday 18th August, 2014 at 11:02

Was this helpful?

You can redirect one of your domains to another by using a 301 Redirect.

For example we can set up a redirect for tsotraining.com to redirect to tsotraining.co.uk.

A Domain Alias will need to be added for the tsotraining.com domain.

You can do this by clicking on the Domain Alias icon and then clicking Add New Domain Alias.

You will now need to add the 301 redirect code into the .htaccess file.

You will need to click on File Manager > public_html and then edit the .htaccess file by right clicking and selecting Edit File.

Paste the following code into the top of the .htaccess file:

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

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


301redirectdomain redirect

Still can't find what you're looking for?

That's not a problem. Our 24/7 customer support team are friendly and waiting to help answer your questions. The easiest way to get in touch is to raise a support ticket; simply click the button below.

Open Support Ticket