关注我们
QRcode 邮件联系 QRcode

wp博客伪静态后禁止收录动态页面

 feng  673 ℃  4条点评

很多人都在使用wordpress做博客,好处和优点就不多说了,本博客也不例外。

由于前段时间,数据库丢失,所有文章都没有了,等于重新做博客了,刚才看了一下收录还是比较快的。

site了一下,虽然博客做了伪静态,但还是发现百度收录了动态页面,做SEO的都知道当有很多不同链接指向同一个页面时这是不好的,所以就要告诉百度蜘蛛不要抓取动态链接。

那怎样才能让百度不再收录动态页面呢?

对,利用robots.txt,简单介绍一下吧。

Robots.txt是放在网站根目录给搜索引擎看的一个文件,蜘蛛在访问你的网站时候,先看看有没有robots.txt,如果有蜘蛛会根据文件的内容来爬行,去爬该爬的地方,通俗的将就是告诉搜索引擎什么链接能收录什么链接不能收录以及什么搜索引擎能够收录,在SEO中有着举足轻重的作用。

WordPress本身就有很多地方是非添加robots.txt不可的,比如:用了伪静态链接之后动态链接依然能访问博客。

所以,我果断写了一个robots.txt文件,具体内容如下:

User-agent: *
Disallow: /*?*
Disallow: /index.php
Disallow: /wp-admin
Disallow: /wp-content/plugins
Disallow: /wp-content/themes
Disallow: /wp-includes

Disallow: /trackback
Disallow: /feed
Disallow: */feed
Disallow: /comments
Disallow: */comments

保存为robots.txt文件上传至网站根目录即可。

详细介绍如何进行网络营销
wp博客用.htaccess做伪静态
emlog博客SEO网站设置方法emlog博客SEO网站设置方法百度站长工具可能发布网站异常行为提醒功能百度站长工具可能发布网站异常行为提醒功能使用cdn加速到底对搜索引擎有没有影响?使用cdn加速到底对搜索引擎有没有影响?wordpress博客给会员头像添加alt标签wordpress博客给会员头像添加alt标签

已有4条评论,欢迎点评!

smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley smiley

  1. avatar
    #2 new york giants jerseys

    Well said!!!!! I in XX community of vc so many year, so-called read person’s innumerable, did not see the pig walk on the whole, also what total understand pork is flavor of. A see the building momentum, I feel that the building Lord with water in the community that for small bludger difference! The melancholy tone, the familiar signature, and between the lines about flourishes. Useless, the building Lord, calculate how you change ma3 jia3 is all to didn’t be useful, your hundred millions have recognize out you, you are certainly legendary and the most strong ID. Since the community after revision, I am already dispirited and discouraged, to the community also didn’t embrace what hope, legend has disillusioned, myth has come to an end, stay in community and what mean? Unexpectedly, have never thought, today can again see the style of the building Lord, I am too agitated unbearable just in front of the screen shed tears. Yes, as long as main lead in the building under, the community there is hope. My heart seethed again, my blood in the chest burned again. A few words of the building Lord although simple but briefly summarized, one expresses our bitterness still think many year shall not solution and several important the root of the problem. The original poster is like the lamp of community, building Lord compare to the direction of the community, the original poster is like the pillars of the community. Have the building Lord at, and a community, that tomorrow will be better!

    2012-11-09 下午 5:27回复
  2. avatar
    #1 Raphael Wetzel

    I just want to say I’m very new to blogs and definitely loved your web blog. Most likely I’m likely to bookmark your website . You amazingly come with good articles. Appreciate it for revealing your blog.

    2012-11-26 上午 1:42回复


注册帐号  |  忘记密码