I want example.com and *.example.com to always resolve to www.example.com
So if I set the DNS records as:
www A server ip
(root) CNAME www.example.com
* CNAME www.example.com
Would these be the correct settings to achieve this?
If so, could there be any search engine problems? I don't want any search bots to think I'm serving different subdomains with the same content, or something like that.
thanks!
www.example.com, you need to do this at the HTTP level, not DNS. For example use an ApacheRewriteMatchto send back a redirect to www whenever someone requests a resource from plain example.com. – poolie Nov 23 '10 at 5:39