Home » 博客SEO

如何避免Google收录博客文章分类及归档下的内容

我们都知道如果博客的内容重复被搜索引擎收录话就有可能会降低搜索引擎对这些内容的权重,特别是Google。所以如果你想尽快有效地提升博客的PR的话,避免Google对博客文章的重复收录就是重要的一步。或许有的人会说如果你的文章被大量转载的话,那样你的博客在搜索引擎中的权重就会越大。但那样就要看谁的博客对搜索引擎更加友好了,如果是转载的那一份先被收录的话,有可能你的内容会被搜索引擎视为转载的。我不准备在这里说太多这方面的内容(有可能日后会另文讨论),这里要讨论的是如何避免我们自己博客上的内容被Google重复收录。

WordPress有文章分类以及文章归档等功能,这些功能是为了方便对读者的导航的。但如果博客上的单篇文章被Google收录了,而Google的机器人有在你的文章分类或文章归档那里找到相同的文章的话,傻傻的机器人就有可能认定你两篇(或多篇)相同的文章中有一篇是被转载的,这样就有会降低搜索权重。为了避免google的重复收录,你可以通过建立robots.txt 文件来告诉google哪些内容不要被收录。如果你不想使用robots.txt 文件的话,可以在wordpress主题中的header.php 文件内使用下面的代码:

<?php if(is_archive()){ ?><meta name="robots" content="noindex"><?php } ?>

将上面这行代码放到</ head >的前面就可以了,这样你就可以避免google收录你的archive.php页面内的任何内容。

Popularity: 1% [?]

Share/Bookmark this!

One Comment

Leave a reply

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally recognized avatar, please register at Gravatar.

Side Notes

This entry was posted by on December 31, 2008 at 2:36 pm and filed under 博客SEO category.

You can add your comments or trackback from your own site. To keep you updated to the latest discussion, you can subscribe to these comments via RSS.

This is a Gravatar-enabled weblog. To get your own globally recognized avatar, please register at Gravatar.

最新文章

最新评论

Tag Cloud

301 Redirect 301重定向 2010 about All in one seo pack AutosCraze blog CSS Darren feed FreshMag Global Translator Google GreenFun HTML Insider name.com Problogger robots.txt文件 RSS Feed seo Wordpress Wordpress 主题 Wordpress主题 代码 优惠码 关于 博客 博客建设 域名 工具 建设 技巧 提交 插件 文章 杂志型主题 标签 注册 绿色 网赚 评论 选择 链接 页面