Skip to content

Instantly share code, notes, and snippets.

@MKlblangenois
Created May 14, 2024 12:56
Show Gist options
  • Save MKlblangenois/deb0bb2f3f8d28555e67ad8be7afefec to your computer and use it in GitHub Desktop.
Save MKlblangenois/deb0bb2f3f8d28555e67ad8be7afefec to your computer and use it in GitHub Desktop.
WordPress robots.txt example
User-agent: *
Disallow: /feed/
Disallow: /cgi-bin/
Disallow: /trackback/
Disallow: /xmlrpc.php
Disallow: /blackhole/
Disallow: /transfer/
Disallow: /tweets/
Disallow: /mint/
Disallow: /archives/
Disallow: /index.php
Disallow: */trackback/
Disallow: /page/
Disallow: /category/
Disallow: /maintenance/*
Disallow: /maintenance.html
User-agent: Googlebot-Image
Disallow: /wp-includes/
Allow: /wp-content/uploads/*.jpg
Allow: /wp-content/uploads/*.jpeg
Allow: /wp-content/uploads/*.png
User-agent: ia_archiver
Disallow: /
User-agent: *
Sitemap: https://your_site.tld/sitemap_index.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment