RewriteEngine OnRewriteCond %{http_host} www\.sitename\.com [nc]RewriteRule ^(.*)$ http://sitename.com/$1 [r=301,l]
Search engines may think www.sitename.com and sitename.com are two different sites. 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.
www.sitepoint.com/blogs/2005/06/14/examplecom-vs-wwwexamplecom-trouble/
google it's self has solved that ages ago.
other engines? .... who cares?