Do it Yourself > 301 Redirect

A 301 permanent redirect is a very simple, yet it plays a crucial role in your websites page rank. What is a 301 redirect, you may be wondering? Well, let's say your domain name is http://www.thisismydomain.com - Now, without a 301 redirect Google and other search engines consider http://thisismydomain.com and www.thisismydomain.com as two different websites. To do this you must have access to your .htaccess file (this file will be in the same folder as your index file-root index-).

Now, you will want to either edit, or create, the .htaccess file. (IF you are not familiar with the .htaccess file, backup all data before proceeding.) Once you have access to your .htaccess file, you will add this snippet of code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^thisismydomain.com [nc]
rewriterule ^(.*)$ http://www.thisismydomain.com/$1 [r=301,nc]

You will just need to replace the two 'thisismydomain' with your actual domain name. To check to see if this has worked, simply go to http://thisismydomain.com (Your domain without the WWW prefix). Once the page has loaded you should notice that it automatically added the WWW for you. And that's it!