我的动态图像生成器出现以下错误。它可以有任何类型的宽度或高度,但 SEO 提示它,因为它需要一个规范的 URL。如何使用不是页面的动态图像执行此操作?
The page with URL "http://localhost/assets/images/99?w=125" can also be accessed by using URL "http://localhost/assets/images/99?w=100".
Search engines identify unique pages by using URLs. When a single page can be accessed by using any one of multiple URLs, a search engine assumes that there are multiple unique pages. Use a single URL to reference a page to prevent dilution of page relevance. You can prevent dilution by following a standard URL format.
最佳答案
canonical
URL 也可以在 HTTP header 中指定。参见 RFC 6596 , 第 4 节:
or alternatively, in the HTTP header field as specified in Section 5 of [RFC5988]:
Link: <http://www.example.com/page.php?item=purse>; rel="canonical"
关于IIS 搜索引擎优化和带有动态图像的规范 Url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13094385/