Robots & Sitemap Checker

Guides › Platforms

WordPress robots.txt: default rules and how to edit

If there's no physical file, WordPress serves a virtual robots.txt. The core default is:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/wp-sitemap.xml

Editing it

Watch out for

Check your site now

Related

Shopify robots.txt: how to edit robots.txt.liquidNext.js: robots.ts and sitemap.ts (App Router)

More free tools from Swift Labs

OG Preview Tool
Preview links on Facebook, LinkedIn, X and Slack, and audit Open Graph tags.
Email DNS Check
Check SPF, DKIM, DMARC and MX records in seconds.
DeadLinkPatrol
Find broken links across your whole site.