August Hosting OFFER, 60% OFF for 6 MONTHS. Offer Includes Website, VPS and WordPress Hosting Plans. USE CODE "AUGUST22"
  • Days,
  • Hours,
  • Minutes,
  • Seconds

How do I redirect my website?

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 http://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 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 When I try and view my website I get an HTTP Error 403 - Forbidden message.

A '403 Forbidden' message means that the browser has requested a page that it is not permitted to...

 My links are not working. What is wrong?

First of all, check that the link is correctly spelled, and that the correct case is used -...

 I've put up my site but I still see the standard index page. What's up?

When we create a hosting package, we place a simple index.html holding page into the public_html...

 How do I set up 404/500 error pages?

This article covers two ways to set up 404/500 error pages, but there are many additional methods...

 How do I enable directory indexing?

If you want to see a list of files in a directory when viewing it in a browser rather than a web...

Powered by WHMCompleteSolution