Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm not so good at DNS at all but I do know some basics.

A while ago i have noticed, that my blog have different Page Ranks, PR 3 for domain www.example.com and PR 1 for domain example.com.

In dns records i have this setup:

A - IP - `www.example.com`
A - same IP - `example.com`

Should i replace this record "A - same IP - example.com" with row with CNAME instead of A? Like that:

CNAME - same IP - `example.com` - alias `www.example.com`

Will this combine Page Rank value of both domains?

Or i can just create 302 redirection inside .htaccess file, verify example.com(without www) inside Google Webmaster Tools as my domain and inside www.example.com options set as main domain?

Thanks ;)

share|improve this question
1  
This would be better asked on webmasters and doesn't actually have anything to do with dns. :P –  JamesRyan Jan 24 '11 at 10:38
add comment

migrated from serverfault.com Jan 24 '11 at 20:27

This question came from our site for professional system and network administrators.

2 Answers

You need to set a 301 redirect on one of your domains to point to the other one.

share|improve this answer
    
thanks i'll try it –  Beck Jan 24 '11 at 11:22
add comment

If the only difference is "with or without .www" you can use Google Webmaster Tools to warn Google that both are the same website.

Or, you can use a permanent redirect to move traffic to the preferred form of the website name.

Or, if you don't want to use a single URL, but you want to warn search engines of the uniqueness of the content, you can use canonical URLs.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.