How to Optimize Your WordPress Robots.txt for SEO

Do you know how to optimize your WordPress robots.txt for seo? I’ve written about WordPress robots.txt some time ago.

Today, I have updated my wordpress robots.txt. Because the old version is not friendly to seo.

New version:

User-agent: *
Disallow: /wp-admin/
Disallow: /wp-content/
Disallow: /wp-includes/
Disallow: /*/comment-page-*
Disallow: /*?replytocom=*
Disallow: /category/*/page/
Disallow: /tag/*/page/
Disallow: /*/trackback
Disallow: /feed
Disallow: /*/feed Disallow: /comments/feed
Disallow: /?s=* Disallow: /*/?s=*\
Disallow: /attachment/
User-agent: NinjaBot Allow: /
User-agent: Mediapartners-Google* Allow: /
User-agent: Googlebot-Image Allow: /wp-content/uploads/
User-agent: Adsbot-Google Allow: /
User-agent: Googlebot-Mobile Allow: /
Sitemap: http://www.linhun.com/sitemap.xml

Updated on May 2016

Related Posts

How to remove xmlrpc pingback ping for WordPress