Possible Duplicate:
What’s the point in having “www” in a URL?
My present DNS configuration for my website's A record is as below
Name Value
---------------------------
example.com 67.45.xx.xx
www.example.com 67.45.xx.xx
In above configuration user can open website either by example.com
or by www.example.com
.
One of my SEO team-member argues for single point access.
According to him search engine’s crawler see 2 different name with same content. It is not good and we should configure domain in such a way that if user open example.com
then browser automatically get redirected to www.example.com
.
Now I have 2 questions
- Does above argument is valid?
- If yes then what changes I need to do in my DNS?
You don't need to change DNS for this at all.. He is correct in his argument though. Google doesn't like the same content for multiple hosts. So pick which one you want to use
example.com or www.example.com and do a 301 redirect from the one you don't want to use to the one you want to use.
The 301 re-direct is done with your webserver not dns. The 301 tells google.. hey.. the site now lives here.. change your links to use this url now and not the old one if it has links to both of the hosts.
Use a
CNAME
record to redirect to the correct pageA
record www.example.com :192.168.1.1Then a
CNAME
record*.example.com : www.example.com
example.com : www.example.com