Just how to make use of rel=' approved' effectively

I have 3 URLS that offer the very same information:

  • www.example.com/product/foo
  • www.example.com/product/foo?id=1
  • www.example.com?product=foo

For Google's purpose I desire the URL www.example.com/product/foo to be the approved one.

Nonetheless, I have my code arrangement so all 3 of those web pages are offered from the very same code so if I include <link rel='canonical' href='http://www.example.com/product/foo' /> to my code it will certainly be related to all 3 web pages, consisting of the one http://www.example.com/product/foo.

Exists any kind of concern with doing this or does having a round approved not create any kind of concerns?

2019-05-07 02:36:25
Source Share
Answers: 1

There's no circularity indicated by having <link rel='canonical' href='http://www.example.com/product/foo' /> look like http://www.example.com/product/foo.

That's the intent. You're claiming "the most effective URL" for this web page is http://www.example.com/product/foo, so when the internet search engine struck http://www.example.com/product/foo?id=1, or http://www.example.com?product=foo, it will certainly get that code and also claim "Aha! This is actually that approved web page, I'll make that authorities." On the web page itself, it simply suggests "Yes, this is a web page, and also this is the most effective URL for this web page."

2019-05-08 23:15:37