I am currently working to improve my site's SEO and I need to use canonical URLs. My doubt is related to which pages need to be canonical.

I know for sure that my root home page needs its own canonical URL, but I also have pages like blog, portfolio, etc. These pages have internal pages such as blog/post-1, blog/post-2, portfolio/work-1, etc. I want to know it these internal pages shouldhave canonical tags that point to its parent page (blog/post-1 -> /blog) or not.

1 Answer 1


Each Page that has its own content should get its own canonical URL. It sounds like each of the pages your mention have their own content and should get their own canonical URL:

  • / -> https://example.com/
  • /portfolio -> https://example.com/portfolio
  • /portfolio/work-1 -> https://example.com/portfolio/work-1
  • /blog -> https://example.com/blog
  • /blog/post-1 -> https://example.com/blog/post-1

Note that I included the full absolute URL including https://example.com/ because the canonical link should always be absolute.

The times that you want the same canonical for different URLs is when they have the same content. For example:

  • /, /index.html,/index.php, https://www.example.com/, and http://example.com/ -> https://example.com/
  • /portfolio, /portfolio/ and /portfolio?utm=some-advertisement -> https://example.com/portfolio
  • /portfolio/work-1 and /portfolio/work-1/ -> https://example.com/portfolio/work-1

In other words when there are differences in URLs that serve the same page, one of those URLs should be designated as the canonical URL. Those differences could be caused by:

  • alternate domains and subdomains
  • alternate protocols
  • alternate spellings and capitalization
  • copied code
  • trailing slashes
  • default directory documents
  • pretty URL rules
  • tracking parameters

When you create your XML sitemap, you should only include the canonical URLs. Google doesn't want to see non-canonical, duplicate, or redirecting URLs in your XML sitemap.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.