Last active
July 22, 2021 10:25
-
-
Save mike-at-redspace/6eaf710834dfa8f00bf5ed24f47af672 to your computer and use it in GitHub Desktop.
WordPress robots.txt
This file contains hidden or 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lines 26-27 blocks Wayback Machine