Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/" /> 


<link rel="canonical" href="http://mydomain.com/" /> ?
share|improve this question
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
@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

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


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.