[HTM3.07] How do I redirect my site?

To make a 301 redirect for a changed page, you need to add the following into a .htaccess file:

redirect 301 /old page name your.domain.com/new page name

So for example, if you wanted to redirect www.oldsite.com/smith.html to www.oldsite.com/jones.html, you would put

redirect 301 /smith.html www.oldsite.com/jones.html

To prevent google being confused about your site (Is it http://yourdomain.com or http://www.your.domain.com

Just add the following to a .htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mywebsite.co.uk
RewriteRule (.*) http://www.mywebsite.co.uk/$1 [R=301,L]

This will cause anyone who uses mywebsite.co.uk to be automatically redirected to www.mywebsite.co.uk .

Was this answer helpful?

 Print this Article

Also Read

[HTM3.02] What is XML?

XML is browser based, and it is not dependant on the type of server that you are running your...

[HTM3.03] How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

[HTM3.05] What is the list of Default Documents in order of priority?

The list of default documents (pages which IIS will serve when only the sub directory is...

[HTM3.04] What is the server path?

The path to your website is partially determined by your domain name, but is in the following...

[HTM3.01] Does Hosting cPanel support SSI (Server Side Includes)?

Yes we do. SSI (Server Side Includes) are tags that are placed in HTML pages, and evaluated on...