我可以在链接到的同一页面上使用规范 URL 吗?
我想问一下关于规范URL的问题。让我们假设这样的 URL 结构:
/category_A/page1
/category_B/page1
/category_C/page1
简单地说,有多个 URL 显示相同的内容。但只有 /category_A/page1 是原始(规范)页面。我的问题是,如果我将指向 /category_A/page1 的规范 URL 放置在同一页面 /category_A/page1 中,考虑到 SEO 是否会产生任何影响(坏/好/中性)?
这样做的原因是,将规范 URL 放入每个页面的头部比尝试找出哪个页面不需要它要容易得多(它与规范页面是同一页面)
I want to ask about canonical URL. Lets assume this URL structure:
/category_A/page1
/category_B/page1
/category_C/page1
Simply put, there are multiple URLs that display the same content. But only /category_A/page1 is original(canonical) page. My question is if it have any impact(bad/good/neutral) considering SEO if I will have canonical URL pointing to /category_A/page1 placed in this same page /category_A/page1 ?
The reason for this is, that its much easier to just put canonical URL into head of every page than to trying find out in which page it is not needed (its the same page as canonical one)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进行操作即可
只要按照您描述的规范标签的完美用例 。规范标签是一种针对错误 URL(或带有不必要参数的 URL)的故障保护。因此,即使在规范指向的 URL 页面上也有它也是很好的。
just do it
you described the perfect use case for the canonical tag. the canonical tag is a kind of failsafe against wrong URLs (or URLs with unnecessary parameters). so it's good to have it even on the page with the URL the canonical points to.