[英]Canonical URLs for REST resources
With plain-old webpages, if you have duplicate content in two locations, you can flag one as 'canonical' so web crawlers and such know that this is just another reference to a resource and explicitly defines the URL of the 'true' location for the content. 对于普通的网页,如果您在两个位置有重复的内容,您可以将其标记为“规范”,以便网络抓取工具知道这只是对资源的另一个引用,并明确定义了“真实”位置的网址内容。 This is done by using a link tag in the HTML
<head>
tags of the non-canonical page pointing to the original. 这是通过在指向原始的非规范页面的HTML
<head>
标记中使用链接标记来完成的。
<link rel="canonical" href="http://www.example.com/the-real-url-of-this-content.php>
In the realm of RESTful web services: 在RESTful Web服务领域:
RFC 6596 potentially answers this. RFC 6596可能会回答这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.