Webmaster Forums - Website and SEO Help

Search Engines and Marketing => Website Crawling and Indexing => Topic started by: ruhikhan on November 21, 2020, 01:13:33 PM

Title: how to add canonical tag in html..?
Post by: ruhikhan on November 21, 2020, 01:13:33 PM
Hello friends,

how to add canonical tag in html..?
Title: Re: how to add canonical tag in html..?
Post by: Smith_euk on November 26, 2020, 05:05:21 AM
A canonical tag defines the search engine that a specific URL represents the master or main copy of a webpage. By using canonical tag one can prevent the difficulty of duplicate content displaying on multiple URLs.
As we all know that Google or other search engines penalize URLs with duplicate content so canonical tags are the solution.
In other words, if you have any duplicate content on different URLs we can make it clear to the search engine by using a canonical tag which one is the main URL and which one has to be indexed.
Here is the syntax of the canonical tag in HTML:
<head>
   <link rel=“canonical” href=“canonical/main URL here” />
</head>
Title: Re: how to add canonical tag in html..?
Post by: sinelogixtech on December 15, 2020, 04:48:05 AM
To add a canonical tag in HTML simply follow the simple steps as:

Open up your .hataccess file.
Add in the Header add Link command to create the canonical tag.
Submit the URL to Google Search Console Fetch & Render to get the canonical crawled.
Title: Re: how to add canonical tag in html..?
Post by: lishmalinyjames on December 29, 2020, 08:32:39 AM
Choose one URL as the canonical and redirect the other URLs there. You should do the same for secure HTTPS/HTTP and www/non-www versions of your site. Choose one canonical version and redirect the others to that version.