how to add canonical tag in html..?

  • 3 Replies
  • 188 Views
*

ruhikhan

  • Full Member
  • ***
  • 198
  • +0/-0
    • View Profile
    • Muslim Vashikaran Solution
how to add canonical tag in html..?
« on: November 21, 2020, 01:13:33 PM »
Hello friends,

how to add canonical tag in html..?

*

Smith_euk

  • Newbie
  • *
  • 9
  • +0/-0
  • Passionate Blogger and Digital Analyst
    • View Profile
    • eUKHost - Managed Web Hosting
Re: how to add canonical tag in html..?
« Reply #1 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>

*

sinelogixtech

  • Hero Member
  • *****
  • 1919
  • +0/-0
    • View Profile
Re: how to add canonical tag in html..?
« Reply #2 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.

*

lishmalinyjames

  • Best Hospitals in Rajakilpakkam
  • Full Member
  • ***
  • 200
  • +0/-0
    • View Profile
    • Best Hospitals in Rajakilpakkam
Re: how to add canonical tag in html..?
« Reply #3 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.

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper