PDA

View Full Version : Where to put canonical tag?



ColleenWilliams
07-27-2017, 09:21 AM
Hi folks,

One of my clients website is running index.php that is duplicate of home page as per Google. I need to know Where should I put canonical tag in home page saying index.php or index.php page saying that this is duplicate of home page. Please guide me in the right direction.

deepakrajput
07-27-2017, 08:07 PM
We have to put canonical tag code below <head> tag of each page.

beastlinks777
07-28-2017, 01:41 AM
Anywhere inside the head tag <head></head> commonly, put after the meta tags.

veraajverma
07-28-2017, 02:32 AM
Hi folks,

One of my clients website is running index.php that is duplicate of home page as per Google. I need to know Where should I put canonical tag in home page saying index.php or index.php page saying that this is duplicate of home page. Please guide me in the right direction.

You have two options : -
1. Suppose your site is www.example.com and you have another page that is www.example.com/index.php
In this case you can redirect www.example.com/index.php to www.example.com. Then you have no need to use canonical tag.

But if you want to keep both page on your live website then you can add canonical tag in your webpages including www.example.com and www.example.com/index.php.

virginoilseom
07-28-2017, 02:38 AM
The Canonical Tag is part of the HTML header on a webpage. This is the same place where we put other fun SEO stuff like the title tag, meta description tag and the robots tag. The code, as in my example above, would look like this.

<link rel="canonical" href="http://example.com/quality-wrenches.htm"/>

It is added inside the head tag

HiteshPatel
07-28-2017, 02:50 AM
Add a <link> element with the attribute rel="canonical" to the <head> section of the web page.
For exaple: <link rel="canonical" href="https://blog.example.com/dresses/green-dresses-are-awesome" />