Possible Duplicate:
SEO preference for WWW or HTTP:// protocol redirection? Do www websites rank better than NON-www?
One domain would have to be redirected to another, but I have seen both cases - www.example.com being redirected to example.com and vice versa. What's the best practice and does either way have any impact on SEO?