简体   繁体   English

如何避免某些页面被搜索引擎索引?

[英]How to avoid some pages from being indexed by search engines?

There is rel="nofollow" but I am not sure about this if it prevents indexing. rel="nofollow"但我不确定是否可以防止编制索引。 What do you say? 你说什么? Any ideas? 有任何想法吗?

UPDATE UPDATE

Sorry I wasn't very clear. 对不起,我不太清楚。 There a page a.php, and it has links b.php , c.php , d.php and some other text content. 有一个页面a.php,它具有链接b.phpc.phpd.php和其他一些文本内容。 The link to b.php is only relevant if the users are on a.php , and doesn't really returns any output. 仅当用户使用a.php ,b.php的链接才有意义,并且实际上不会返回任何输出。 Its not relevant if somebody goes directly on this b.php from yahoo/google search results. 如果有人直接从yahoo / google搜索结果中浏览此b.php,则与之无关。

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

You can update the robots.txt file specifying which URLS not to index or make sure that they are not in your sitemap.xml file 您可以更新robots.txt文件,以指定不将哪些URL编入索引,或者确保它们不在您的sitemap.xml文件中

http://www.robotstxt.org/ http://www.robotstxt.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM