Redirect the non-www to the www url?

wwwShould you redirect the non-www url to the www url for your site?

For example http://www.forumdr.com tends to be treated as a different site to http://forumdr.com by the search engines. This sort of handling of domains by the search engines may mean different rankings between the two versions and it may be treated as duplicate content by the search engines. As a result of duplicate content, they may filter one version out of the search index. Some backlinks to the site may point to the www version and some to the non-www version, spreading the benefit across the two domains.

For this reason, I use a redirect on all my sites directing the non-www domain to the www domain.

For example http://google.com (click on it) redirects to http://www.google.com, and so does http://ebay.com (if its good enough for them, its good enough for me!).

To do this:
If your webhost or server  is using Apache and it supports htaccess you can simply add or write the following  into a .htaccess file and place it in the root directory.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

No comments yet.

Leave a Reply