Canonical Links: In page and in HTTP header
Our indexing robots use the canonical links tags that can be placed in either the page itself or in the HTTP header of your web server.
When our indexing bots find a canonical link, it removes the page that contains the link from the search results and allows the page that is in the canonical link to appear in the search results.
Canonical links are used when you have multiple links pointing to one page and allows you to select which of these links you want to appear in the search results.
Examples:
Canonical link used in the page itself: These links should be place between the HTML header tags.
<link rel="canonical" href="https://www.yourwebsite.com.au/product5.html">
This example tells our indexing bots that it should allow the page product5.html to appear in the search results and the page that this link is on to be removed from the search results.
Canonical link used in the HTTP header of your web server: This link is placed in the HTTP header of your web server.
link "<https://www.yourwebsite.com.au/product5.html>; rel="canonical""
This example tells our indexing bots that it should allow the page product5.html to appear in the search results and the page that this link is detected in the HTTP header for that page to be removed from the search results.