处理WordPress的重复内容
很多关于WordPress SEO的文章中都曾提到网站的重复内容会影响搜索引擎的收录,即很可能收录的不是作者想被收录的页面。在WordPress平台的Blog中,存档页面(时间,分类)和Tag存档页面都会有和单篇日志内容重复的现象。
冰仔曾写过WP处理重复内容的方法和对重复内容的分析。他使用的是写robots.txt的方法。我自己采用的则是在WP的header.php文件中,head标签结束之前加入如下代码:
- <?php if (is_single() OR is_page() OR is_home()) : ?><meta name="robots" content="index,follow" /><?php else : ?><meta name="robots" content="noindex,follow" /><?php endif; ?>
好处就是不用分析自己网站的链接结构来写robots了。


我咋查的,就是搜索“子说”,结果里没有子说首页。
[Reply]
[…] 对于重复内容,其实只要在 header.php 中加入这一段代码即可(via E-Space): […]
[Reply]
[…] 所以我推荐用via E-Space的办法: […]
[Reply]
[…] 对于重复内容,其实只要在 header.php 中加入这一段代码即可(via E-Space): […]
[Reply]
[…] 文章有过多的重复内容会被搜索引擎惩罚,所以处理Wordpress博客重复内容也是非常重要的,以下是采用了E-space的代码: <?php if (is_single() || is_page() || is_home() ) : ?><meta name=”robots” content=”index,follow” /><?php else : ?><meta name=”robots” content=”noindex,follow” /><?php endif; ?> […]
[Reply]
我 oooO ↘┏━┓ ↙ Oooo ( 踩)→┃你┃ ←(死 ) \ ( →┃√┃ ← ) / \_)↗┗━┛ ↖(_/ 知道我为什么踩你吗?因为你的博客太好了。让我心生妒忌。。继续去踩你其他的文章(*^__^*) 嘻嘻……
[Reply]