• 欢迎来到本站,本站主要做程序员相关技术、博客、笔记,如果喜欢本网站那么赶紧使用Ctrl+D 收藏吧!
  • 如果有任何疑问,可以在下方文章下方留下你的评论~

[SEO] wordpress robots.txt Optimize your blog

视频教程 9个月前 (09-27) 1次浏览 0个评论

WordPress blog robots.txt Document writing method has to be decided according to their own website situation:

Example

User-agent: *
Disallow: /wp-
Disallow: /?
Disallow: /feed/
Disallow: /*/feed/
Disallow: /trackback/
Disallow: /*/trackback/
Disallow: /page/
Disallow: /a-category/*/page/
Disallow: /a-tag/*/page/
Sitemap: http://www.shouce.ren/sitemap_baidu.xml

Notes

  • User agent: * [open to all search engines]

  • Disallow: /wp- [ It is forbidden for search engines to include all URLs containing the word "WP -" such aswp-admin、wp-content、wp-includes、wp-login.php etc.]

  • Disallow: /? [ Forbid search engines to include all URLs containing the word "?" ]

  • Disallow: /feed/ [ Forbid search engines to include RSS subscription pages ]

  • Disallow: /*/feed/ [ Forbid search engines to include RSS subscriptions of all categories, TAGs, and articles ]

  • Disallow: /trackback/ [ Forbidden to include Trackbacks of websites ]

  • Disallow: /*/trackback/ [ It is forbidden to include the Trackbacks of all classified catalogues, tags and articles ]

  • Disallow: /page/ [ Forbidden to include Page ]

  • Disallow: /a-category/*/page/ [ Forbidden to include Category-Page ]

  • Disallow: /a-tag/*/page/ [ Forbidden to include Tag-Page ]

  • Sitemap: http://www.chinapenpal.ren/sitemap.xml robots.txt [ The sitemap path of your site ]


中国笔友, 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:[SEO] wordpress robots.txt Optimize your blog
喜欢 (0)
发表我的评论
取消评论
表情 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址