链接rel =“ canonical”:不同的用户指南版本是否应该使用相同的规范URL? [英] Link rel="canonical": Should different user guide versions use the same canonical url?
问题描述
是否应该有2个不同版本的用户指南使用不同的规范URL ?
Should 2 different versions of a user guide use a different canonical URL?
文档版本 1.1.0最终
:
<link rel="canonical" href="http://docs.foo.org/1.1.0.Final/index.html">
文档版本 1.2.0.Final
:
<link rel="canonical" href="http://docs.foo.org/1.2.0.Final/index.html">
或者应该使用2个不同版本的用户指南相同的规范网址?
文档版本 1.1.0.Final
:
<link rel="canonical" href="http://docs.foo.org/latestFinal/index.html">
文档版本 1.2.0.Final
:
<link rel="canonical" href="http://docs.foo.org/latestFinal/index.html">
推荐答案
每 RFC 6596中的规范链接关系 ,规范
链接类型只能用于标识
Per The Canonical Link Relation from RFC 6596, the canonical
link type may only be used for URIs that identify content that is
- 重复或
因为这不一定适用使用不同版本的用户指南(因为可能会添加/删除/更改功能),必须不使用否链接 canonical
最新版本。如果要使用 canonical
,则必须是自引用的。
As this is not necessarily the case for different versions of the user guide (because features might be added/removed/changed), the canonical
link type must not be used to always point to the latest version. If you want to use canonical
, it would have to be self-referential.
这篇关于链接rel =“ canonical”:不同的用户指南版本是否应该使用相同的规范URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!