Skip to content

Instantly share code, notes, and snippets.

@johanoloflindberg
Forked from ericrasch/robots.txt
Created July 4, 2017 03:52
Show Gist options
  • Save johanoloflindberg/0636c2392533b1e5a6e9fc93cd56c406 to your computer and use it in GitHub Desktop.
Save johanoloflindberg/0636c2392533b1e5a6e9fc93cd56c406 to your computer and use it in GitHub Desktop.
Robots.txt files for sites with WordPress.
User-agent: *
# Changing the /feed back to include the trailing slash since it otherwise blocks URLs like http://www.thesimpledollar.com/feeding-my-sweet-tooth-without-breaking-my-belly-or-breaking-the-bank/
Disallow: /feed/
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-content/cache
Disallow: /wp-includes
Disallow: /trackback
Disallow: /xmlrpc.php
Disallow: ?wptheme=
Sitemap: http://www.yourwebsite.com/sitemap_index.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment