Link rel = "canonical": If different versions of the user manual use the same canonical url?

Should two different versions of the user guide use a different canonical URL ?

Documentation version 1.1.0.Final :

 <link rel="canonical" href="http://docs.foo.org/1.1.0.Final/index.html"> 

Documentation version 1.2.0.Final :

 <link rel="canonical" href="http://docs.foo.org/1.2.0.Final/index.html"> 

Or use the same canonical URL in two different versions of the user guide?

Documentation version 1.1.0.Final :

 <link rel="canonical" href="http://docs.foo.org/latestFinal/index.html"> 

Documentation version 1.2.0.Final :

 <link rel="canonical" href="http://docs.foo.org/latestFinal/index.html"> 
+5
source share
1 answer

Per Canonical linking of links from RFC 6596 , canonical link type can only be used for URIs that identify content

  • duplicate , or
  • a superset .

Since this is not necessary for different versions of the user manual (since functions can be added / removed / changed), the canonical link type should not be used to always indicate the latest version. If you want to use canonical , this should be self-referential.

+2
source

Source: https://habr.com/ru/post/1257841/


All Articles