rel=canonical: the ultimate guide to canonical URLs • Yoast
This is what rel=canonical
was invented for and, unfortunately, this happens fairly often, especially in a lot of e-commerce systems. A product can have several different URLs depending on how you got there. In this case you would apply rel=canonical
as follows:
- Pick one of your two pages as the canonical version. This should be the version you think is the most important. If you don't care, pick the one with the most links or visitors, and if all else is equal, flip a coin. You just need to choose.
- Add a rel=canonical link from the non-canonical page to the canonical one. So if we picked the shortest URL as our canonical URL, the other URL would link to the shortest URL in the
<head>
section of the page – like this:
Read full article from rel=canonical: the ultimate guide to canonical URLs • Yoast
No comments:
Post a Comment