如何解决搜索引擎重复内容?

发布于 2024-12-29 10:53:47 字数 1456 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

刘备忘录 2025-01-05 10:53:47

在每台服务器的根目录下创建一个 robots.txt 文件,指定应为哪些页面建立索引。

例如,在站点 2 上:

User-agent: *
Disallow: /a.htm
Disallow: /b.htm

Create a robots.txt file on the root of each server, specifying which pages should be indexed.

For example, on Site 2:

User-agent: *
Disallow: /a.htm
Disallow: /b.htm
那请放手 2025-01-05 10:53:47

您不能直接 - 没有搜索引擎提供这种“填写此表单”类型的控件。

您有两个选择:

1) 使用 robots.txt 告诉爬虫不要为 site1 上的页面建立索引
2)使用301“永久移动”重定向告诉爬虫去查看site2而不是site1。

You can't directly - no search engine offers that kind of "fill in this form" type of control.

Your two options:

1) use robots.txt to tell crawlers to NOT index the pages on site1
2) use 301 "permanently moved" redirects to tell crawlers to go look at site2 instead of site1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文