Skip to main content
7 of 8
Formatting
Zistoloen
  • 10k
  • 6
  • 36
  • 59

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