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

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
add comment

1 Answer 1

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
1  
I'd choose solution (1) ;) –  Olivier Pons Nov 19 '11 at 16:20
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.