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

标签 ajax seo

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/

相关文章:

seo - Schema.org 中的 NAICS 代码或名称

html - 如果我将表格用于 html 表单,SEO 会发生什么情况?

seo - 我可以将自定义属性添加到 JSON-LD 中的给定 @type 吗?

Javascript:onkeyup 与 onsubmit 相处不来

javascript - ajax成功后如何更改标签的类别?

javascript - 使用 jQuery 将值 append 到输入字段

asp.net-mvc - 元标记和开放图协议(protocol)问题

javascript - Jcarousel 和显示 : none + SEO concern

Javascript HTML 选择下拉菜单

jquery - 当有 ajax post 时不能破坏 jquery 函数