: Implementing Canonical URLs I have a confusion in implementing canonical URLs; Client has shared a set of URLs like; http://example.com/eg/ http://example.com/eg/index?32312323 http://example.com/eg/index?54545545
I have a confusion in implementing canonical URLs;
Client has shared a set of URLs like;
example.com/eg/ http://example.com/eg/index?32312323 example.com/eg/index?54545545 http://example.com/eg/index?45554455
What I did to make them canonical I have added below tag on each of the above page header;
<link href="http://example.com/eg/" rel="canonical">
I have following questions:
Do implementation is right?
If yes; google will take care of rest like content duplication issue etc?
Any further improvement or any better alternative?
Please do let me know if I am not clear
Thanks
More posts by @Murray432
1 Comments
Sorted by latest first Latest Oldest Best
If the following URL's output exactly the same code:
example.com/eg/ http://example.com/eg/index?32312323 example.com/eg/index?54545545 http://example.com/eg/index?45554455
And of all the URLs, you want to see the following URL in search engines:
example.com/eg/
then edit your scripts so that this line:
<link href="http://example.com/eg/" rel="canonical">
is between <head> and </head> in the code produced from each of these URLs:
example.com/eg/index?32312323 http://example.com/eg/index?54545545 example.com/eg/index?45554455
By adding that tag, you declared the code in the above three URLs an exact copy of the code in this URL:
example.com/eg/
You don't need to declare canonical inside:
example.com/eg/
because you designated that URL as the original content URL.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.