Tsohost Knowledge Base

How do I add a 301 redirect?

Modified Friday 31st October, 2014 at 03:06

Was this helpful?

There are numerous ways to add a 301 redirect, but the simplest way is by editing your .htaccess file.

1. Within your control panel, click Manage Website next to the site that you wish to set up the redirect for and go to File Manager

2. You're now in your home directory. Now find the file marked .htaccess and click Edit

3. Scroll to the bottom of the file and add one of the following lines:

To redirect your entire website:

Redirect 301 / http://exampledomain.com

(replace exampledomain.com with the address to be directed to)

To just redirect individual pages:

Redirect 301 /index.html http://exampledomain.com

(replace index.html with the file for that page)

(replace exampledomain.com with the address to be directed to)

You will need to add this line for each page you wish to redirect.

Note: If the page you wish to redirect isn't in the home directory, you will need to include the full address (not including the home directory).

e.g. /folder/index.html


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