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

Do you know if i should use canonical tag, or 301 redirection from

http://mydomain.com to http://www.mydomain.com

To avoid duplicated content penalty in case other pages link to the domain without the www.? or is Google enough smart now just to identify whats the canonical one?

share|improve this question

If you don't specifically tell Google your preference you will probably have duplicate content issues. There is more then one way to inform Google of your preferred domain:

  1. Do a 301 redirect to use the 'www' or no 'www'
  2. Specify your preferred domain in Google Webmaster Tools
  3. Use canonical URLs (although it isn't typically used in this situation)
share|improve this answer
I'd choose solution (1) ;) – Olivier Pons Nov 19 '11 at 16:20

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.