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

If my site domain is a naked domain (non-WWW). Should the canonical tag for my site be:

<link rel="canonical" href="http://mydomain.com/" /> 

or

<link rel="canonical" href="http://mydomain.com/" /> ?
share|improve this question
2  
They're the same thing –  John Conde Nov 3 '12 at 13:41
    
Am I right to say, I can put either one of the canonical tag in the header.php? –  user19663 Nov 3 '12 at 15:18
1  
@Jess he means that the two examples you wrote are literally identical, character for character. Did you mean to put "www" on the second one? –  DisgruntledGoat Nov 6 '12 at 12:25

1 Answer 1

You want the canonical URL to be the page you want to be considered the original URL for that content and what will be shown in Google's search results. In your case you will make sure your canonical URL does not use the www.

share|improve this answer
    
John Conde, thank you for your help. –  user19669 Nov 4 '12 at 3:10

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.