You need to use an htaccess rule to force a redirect to either www or non-www. www or non-www is also treated by google as two separate urls, so it should be done for SEO purposes as well. So you need to choose which you prefer - www or non-www.
See this post: