We often read about the usage of 301 redirects as the most efficient and Search Engine Friendly method for webpage redirection. However, rarely there is a mention of 301 redirects used to eliminate the potential for duplicate content. So, we’ve decided to share a bit.
Google (or any other major search engine) considers pages found within www versus non-www (www.yourdomain.com versus yourdomain.com) as different. Most of us would think they are the same, thus assuming www.domain.com, and domain.com are the same. Actually they are not. From a search engine perspective, they are treated differently in that some content can be considered as duplicate content. Furthermore, having www.domain.com, and domain.com can cause the negative effects of link fragmentation, meaning some links are pointing to domain.com and some to www.domain.com.
So how do we address this potential problem?
If you running apache, add the following code to your htaccess file in the root of your website:
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
You’d be amazed how many webmaster miss this simple, but critical aspect of sound SEO.
Technorati Tags: 301 redirect, redirection, Search Engine Optimization, seo

August 11th, 2007 at 3:30 pm
I have been reading and reading about this fabled redirect 301 and since i am on a windows server with asp usage, none of the info i have found so far has been any use to me not even this IIS thingy which is somthing i dont have. So please can you tell me how i can redirect from non www to my http://www. via say for example - dreamweaver.
thanks in advance
August 24th, 2007 at 3:40 pm
Hey Stephen-
If you are running on a windows server, you are most likely running IIS, which is the web server. If you aren’t running IIS, then what type of web server are you running? You can do a 301 redirect using some ASP code, check out this link: http://www.seoconsultants.com/tips/asp/301.asp
Hope that helps.
September 13th, 2007 at 4:05 am
Hi there Adam, thankyou very much for your help, took a while but finally got it sorted out, free pint for you by mail order if i could