SEO Robots.txt File for WordPress

Self-hosted WordPress blog is advised by WordPress.org to use Robots.txt file to tell search engine about what to crawl and what not.

Here’s Robots.txt file example which is good for SEO (search engine optimization) according to WP

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads

# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*

# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

# digg mirror
User-agent: duggmirror
Disallow: /

Sitemap: http://www.example.com/sitemap.xml

Don’t know how to create robots.txt file? See here.

Another sample of a good robots.txt file is here.

9 Responses to SEO Robots.txt File for WordPress

  1. Mas Apa jadinya Klo Kita Tidak Membatasi Directory Tersebut ?

  2. Matur suwun nggih sam,,,,langsung praktek dh,,

  3. Not sure you really need one, as I think they are auto generated. But if you want to customize things like this it would be necessary.

    - Robert

  4. nice post..
    i will introduce this tutorial..

  5. I am very lucky to find your web site. Your article is very useful. Thank you for share

  6. kalo dah pake robot txt ini crawl gugel dah gag bisa masuk ke wp admin beneran ya gan?

  7. info bagus, bisa praktek langsung

Leave a Reply

Your email address will not be published. Required fields are marked *

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