Should I use rel="canonical" on my homepage for non www to www? : <p>I'm really confused about using the <code>rel="canonical"</code> on my homepage since my website is using www and non www. Should I be using</p>

<p><code>&lt;link rel="canonical" href="https://www.example.com/" /&gt;</code></p>

<p>on my homepage since i prefer www, for when someone accesses my domain using a non-www?</p>
