Skip to content

Instantly share code, notes, and snippets.

@madalinignisca
Created November 19, 2013 14:08
Show Gist options
  • Save madalinignisca/7545899 to your computer and use it in GitHub Desktop.
Save madalinignisca/7545899 to your computer and use it in GitHub Desktop.
Basic starting robots.txt for WordPress sites. Started from "Professional WordPress: Design and Development" book. You need to adapt it based on your custom permalinks!!!
Sitemap: http://www.example.com/sitemap.xml
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: /tag/*/*
Disallow: */trackback/
Disallow: */feed/
Disallow: */comments/
Disallow: /*?
Allow: /wp-content/uploads/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment