: How can I make the canonical tag different on every page when it is included in my common header section? I have a photo sharing site. I inserted the canonical tag on header ( i have common
I have a photo sharing site. I inserted the canonical tag on header ( i have common header section for every page) of index page. but all pages show the same tag.
How can i implement canonical tag each page?
More posts by @Fox8124981
1 Comments
Sorted by latest first Latest Oldest Best
Edit: if you want to use canonical on every page, you can do it with Google Tag Manager.
There is no point on using canonical tag among all the site. You should only use it on pages with duplicate content.
For example, if you have example.com and example.com/index.php you should add the following tag in the page header of index.php.
<link rel="canonical" href="http://example.com" />
Searchers will discard example.com/index.php version. If you have example.com/products and example.com/poducts/sorted you should add at both pages:
<link rel="canonical" href="http://example.com/products" />
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.