【发布时间】:2011-09-28 16:22:03
【问题描述】:
我正在尝试对网站上的分页控件执行一些 SEO。
在Google guidelines 之后,我想将链接 rel=next/prev 即<link href="/search/results?page=2" rel="next" /> 添加到我的搜索结果页面的<head>。
不幸的是,由于 MVC3 的设计决定/对渲染 sections and defining their content within Partials 的限制,我无法执行此操作。
所以我的问题是 - 我可以通过在响应中添加“链接”HTTP 标头(即 Link: <http://www.example.com/search/results?page=2>; rel="next")来复制上述功能,因此不必在<head>?
【问题讨论】:
标签: seo pagination http-headers