gpt4 book ai didi

ajax - #! url 出现在我的搜索结果的顶部

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:45:03 24 4
gpt4 key购买 nike

enter image description here

我们刚刚开始使用 SEO/Ajax,所以希望有人能帮助我们解决这个问题 - #! urls 显示为我们的初创公司 nurturelist.com 的第一个有机结果。尽管此链接在技术上有效,但我们 1) 不希望有任何 #!网址会出现在搜索结果中,因为它们看起来很奇怪而且我们没有 #!版本 2) 图像中的第二个有机结果是我们实际上希望出现在顶部的结果。

非常感谢关于我们如何实现这一目标的任何想法......

最佳答案

你只是不想#!出现在搜索结果中?只需制作一个 robots.txt在你的根目录中(在大多数情况下是 public_html 目录)并向其中添加这些行:

User-agent: *
Disallow: /\#!/

这会阻止 Google 索引所有 /#!/ 下的页面子目录。

但是:

If the page has already been indexed by Googlebot, using a robots.txt file won't remove it from the index. You'll either have to use the Google Webmaster Tools URL removal tool after you apply the robots.txt, or instead you can add a noindex command to the page via a tag or X-Robots-Tag in the HTTP Headers.

( Source )

Here is a link to the Google Webmaster Tools URL Removal Tool

因此将此添加到您不想编入索引的页面:

<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />

关于ajax - #! url 出现在我的搜索结果的顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25433373/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com