Skip to main content
2 of 8
added 182 characters in body; added 31 characters in body
Andreas Bonini
  • 2.6k
  • 24
  • 23

Should I include "www" in my canonical URLs? What are the pros and cons?

What are the pros and cons of having http://www.example.com/ vs http://example.com/ ?

For example a problem I'm aware of is that if I use a domain without www I can't set a cookie for the current subdomain only (since there is no subdomain), and the cookies I set will be sent to all subdomains.

Andreas Bonini
  • 2.6k
  • 24
  • 23