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


redirect301domain.htaccess

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

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. There's no need to wait, click below to start a Live Chat.

Start Live Chat

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

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. Don't delay, click below to find out how you can get in touch.

Get in Touch