A canonical URL is the preferred URL of a website’s homepage. Most homepages can be found by typing multiple URLs into a browser’s address bar.
For example, all of the following URLs could contain the same homepage content for your website:
If you have set https://yoursite.com/ as the preferred URL, it becomes the canonical domain.
WordPress blog posts and pages have the same URL variation