阻止 Google 从我网站上的链接创建页面
Prevent Google from creating pages from links on my site
我的网站现在遇到了一个非常奇怪的问题。我的产品页面上出现了 "send this product to a friend" 弹出窗口 window。这个 window 是一个弹出窗口,但它位于单独的 html 页面上,该页面被调用并放入弹出窗口中,如下所示:
这是用户单击以触发弹出窗口的 link:
<li><a class="email-friend" rel="nofollow"></a></li>
这里是 jquery 让弹出窗口显示:
<script>
jQuery(document).ready(function(){
jQuery('.email-friend-popup').jqm();
jQuery('a.email-friend').click(function(){
jQuery.ajax("/catalog/send.html?productId=<?= $product->entity_id; ?>", {
data: {},
success: function(data, status, xhr){
setTimeout(function(){ jQuery('.email-friend-popup').html(data); }, 1000);
//jQuery('#jqmHide').click(function(){ jQuery('#jqmWindow').jqmHide(); });
}
});
jQuery('.email-friend-popup').html('<img src="/media/island/loading.gif" />').jqmShow();
return false;
});
});
</script>
当 Google 抓取我的页面时,它会创建一个 link,如下所示:/catalog/send.html?product=3791。我们网站上有几百种产品,这导致了相当大的 SEO 问题。如您所见,我已将 rel="nofollow" 添加到 a 标记,但这似乎并没有解决问题,因为页面仍然存在。有谁知道这个问题或有可能解决它的解决方案?
您可以在此处看到弹出窗口:http://www.islandcompany.com/catalog/mens-resort-wear/classic-shirts/bimini-striped-linen-shirt.html
这是由于此错误而创建的页面:http://www.islandcompany.com/catalog/send.html?product=7871
您可以使用您放置在您网站的根目录 (www.example.com/robots.txt).
你可以这样写:
User-agent: *
Disallow: /catalog/send.html
url 将从 Google 索引中删除(一定时间后),您可以使用 Google Webmaster Tools 提供的工具之一强制执行此操作("URL removal" "Google Index" 部分下的工具)。
您可以将 "robots" 元标记添加到 /catalog/send。html:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
我的网站现在遇到了一个非常奇怪的问题。我的产品页面上出现了 "send this product to a friend" 弹出窗口 window。这个 window 是一个弹出窗口,但它位于单独的 html 页面上,该页面被调用并放入弹出窗口中,如下所示:
这是用户单击以触发弹出窗口的 link:
<li><a class="email-friend" rel="nofollow"></a></li>
这里是 jquery 让弹出窗口显示:
<script>
jQuery(document).ready(function(){
jQuery('.email-friend-popup').jqm();
jQuery('a.email-friend').click(function(){
jQuery.ajax("/catalog/send.html?productId=<?= $product->entity_id; ?>", {
data: {},
success: function(data, status, xhr){
setTimeout(function(){ jQuery('.email-friend-popup').html(data); }, 1000);
//jQuery('#jqmHide').click(function(){ jQuery('#jqmWindow').jqmHide(); });
}
});
jQuery('.email-friend-popup').html('<img src="/media/island/loading.gif" />').jqmShow();
return false;
});
});
</script>
当 Google 抓取我的页面时,它会创建一个 link,如下所示:/catalog/send.html?product=3791。我们网站上有几百种产品,这导致了相当大的 SEO 问题。如您所见,我已将 rel="nofollow" 添加到 a 标记,但这似乎并没有解决问题,因为页面仍然存在。有谁知道这个问题或有可能解决它的解决方案?
您可以在此处看到弹出窗口:http://www.islandcompany.com/catalog/mens-resort-wear/classic-shirts/bimini-striped-linen-shirt.html
这是由于此错误而创建的页面:http://www.islandcompany.com/catalog/send.html?product=7871
您可以使用您放置在您网站的根目录 (www.example.com/robots.txt).
你可以这样写:
User-agent: *
Disallow: /catalog/send.html
url 将从 Google 索引中删除(一定时间后),您可以使用 Google Webmaster Tools 提供的工具之一强制执行此操作("URL removal" "Google Index" 部分下的工具)。
您可以将 "robots" 元标记添加到 /catalog/send。html:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">