Webengineer
Webengineer

Reputation: 19

In which page the "Canonical URL" meta tag should be placed when there are 2 pages called a.html and b.html which holds the same content?

In which page the "Canonical URL" meta tag should be placed (and how to write it on the right page?) when there are 2 pages called a.html and b.html which holds the same content?

Upvotes: 0

Views: 365

Answers (1)

versvs
versvs

Reputation: 643

If both files are in the same website, it is highly unrecommended to have duplicated content and one of those two pages should be removed (adding a Redirect from the removed to the final URL, to avoid 404 errors). Apart from the Moz link above, the official guide from Google, one of the most prominents search engines, is also clear: avoid having duplicated content across your websites.

Canonical URLs are best used when parts of a website are being republished elsewhere, it's a very elegant form of attributing the authorship and relevance to the original content generator.

Now, if you can't delete one of the pages of your project and redirect the URL to the other one, you need to decide which one is going to be considered as "main" from the project's point of view, and set the attribute canonical pointing to that URL.

I hope i helped you, and if I did solve your issue, don't forget to mark the answer :)

Regards,

Upvotes: 1

Related Questions