Last active
July 4, 2017 03:52
-
-
Save ericrasch/6073660 to your computer and use it in GitHub Desktop.
Robots.txt files for sites with WordPress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Nice catch!
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/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After testing with the Google Webmaster Tools, you need to leave off the trailing slash on folders. So, a rule like
Disallow: /feed
will get both /feed/ and /feed covered by the rule.