Skip to content

Instantly share code, notes, and snippets.

@chuckreynolds
Last active July 17, 2024 16:57
Show Gist options
  • Save chuckreynolds/135728 to your computer and use it in GitHub Desktop.
Save chuckreynolds/135728 to your computer and use it in GitHub Desktop.
Solid start Robots.txt for WordPress Sites. (HEADS UP: Make sure you're viewing the most recent version of this Gist) https://gist.github.com/chuckreynolds/135728/
# robots.txt for wordpress
# https://gist.github.com/chuckreynolds/135728
User-agent: *
Disallow: /*.php$
Disallow: /cgi-bin/
Disallow: /comment-page-*
Disallow: /?s=*
Disallow: /search/*
Disallow: /trackback/
Disallow: /wp-json/
Sitemap: https://YOUR-DOMAIN.com/sitemap.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment