This is a great SEO tip to get your website higher in the rankings as it puts more focus on your main domain name (either with or without the ‘www’).
Why use Permanent Redirects
Search engines may think www.yourdomain.co.uk and yourdomain

.co.uk are two different sites. Thats why you should set up a permanent redirect (technically called a “301 redirect”) between these sites. Once you do that, you will get full search engine credit for your work on these sites.

The code is simple to use, all you need to do is open notepad / dreamweaver etc and save a file names ‘.htaccess‘. Within this file copy and paste the text in the quote area below.
Quote:
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk
RewriteRule (.*) http://www.yourdomain.co.uk/$1 [R=301,L]

If you open a document window (PC) / finder window (Mac) you may not see the file this is because operating systems treat the .htaccess file as a hidden file. If you turn on show hidden files you will be able to see it.

Many control now have this feature, one that we use on Host Media UK is cPanel and this feature is on the control panel.

Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *

About Host Media

We have been hosting websites since 2002 and are always moving forward. All articles written under the Host Media author are created by the team who support our customers.

Category

SEO, Server Scripting