webzod
account

List the sitemap in robots.txt on WordPress

hygiene.sitemap.not_declared · effort: minutes

Why it matters

A sitemap exists at /sitemap.xml but robots.txt does not mention it, so crawlers that do not already know about it will not find it. Adding the line takes a minute.

The fix

  1. The core sitemap at /wp-sitemap.xml is listed in WordPress's own robots.txt automatically. If a physical robots.txt or an SEO plugin replaces it, add the Sitemap line there.
  2. Check https://example.com/robots.txt afterwards.

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.