Skip to content

Instantly share code, notes, and snippets.

@mike-at-redspace
Last active July 22, 2021 10:25
Show Gist options
  • Save mike-at-redspace/6eaf710834dfa8f00bf5ed24f47af672 to your computer and use it in GitHub Desktop.
Save mike-at-redspace/6eaf710834dfa8f00bf5ed24f47af672 to your computer and use it in GitHub Desktop.
WordPress robots.txt
# robots.txt for wordpress
# based on https://gist.github.com/chuckreynolds/135728
User-agent: *
Disallow: /wp-admin/
Disallow: /cgi-bin/
Disallow: /trackback/
Disallow: /comment-page-*
Disallow: /?s=*
Disallow: /*.php$
Allow: /wp-admin/admin-ajax.php
Sitemap: https://YOUR-DOMAIN.com/sitemap.xml
User-agent: Mediapartners-Google
Allow: /
User-agent: Adsbot-Google
Allow: /
User-agent: Googlebot-Image
Allow: /
User-agent: Googlebot-Mobile
Allow: /
#User-agent: ia_archiver-web.archive.org
#Disallow: /
Sitemap: http://domain.com/sitemap.xml
@mike-at-redspace
Copy link
Author

Lines 26-27 blocks Wayback Machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment