Generate canonical URL tags to point Google at the preferred version of each page and prevent duplicate-content penalties.
Use the full absolute URL including protocol. Self-referential canonicals are recommended for every page.