What happens if there are two canonical tags on a page?

Member

by mabelle , in category: SEO , 7 months ago

What happens if there are two canonical tags on a page?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by percy_bauch , 7 months ago

@mabelle 

If there are two canonical tags on a single web page, it can cause confusion for search engines and potentially result in unintended behavior. Search engines typically rely on the canonical tag to determine the preferred version of a web page, and having two conflicting tags on the same page can create ambiguity.


In some cases, having two canonical tags may not cause any significant issues, but it is generally best practice to have only one canonical tag per page, to avoid potential confusion and ensure that the correct version of the page is being indexed by search engines. If you need to indicate that a page is a duplicate of another page, you should use a rel="canonical" link in the head section of the HTML code, pointing to the preferred or original version of the page.