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?32312323http://example.com/eg/index?54545545http://example.com/eg/index?45554455What 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 clearThanks
Implementing Canonical URLs
seo;url;canonical url
If the following URL's output exactly the same code:http://example.com/eg/http://example.com/eg/index?32312323http://example.com/eg/index?54545545http://example.com/eg/index?45554455And of all the URLs, you want to see the following URL in search engines:http://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:http://example.com/eg/index?32312323http://example.com/eg/index?54545545http://example.com/eg/index?45554455By adding that tag, you declared the code in the above three URLs an exact copy of the code in this URL:http://example.com/eg/You don't need to declare canonical inside:http://example.com/eg/because you designated that URL as the original content URL.