Task Library
Generate a clean XML sitemap, reference it in robots.txt, and submit it to Search Console so Google can find every page worth indexing.
Category: Digital Plumbing
Use this when the site has no sitemap.xml, the sitemap is missing from robots.txt, or Search Console shows the sitemap as unfetched or erroring.
Inputs
- WordPress admin with Rank Math (or equivalent SEO plugin that generates sitemaps)
- Ability to edit robots.txt (plugin or file access)
- Google Search Console access for the verified property
Steps
- Enable the XML sitemap in Rank Math (Sitemap Settings). Include posts, pages, and real taxonomies; exclude thin archives, media attachments, and anything noindexed.
- Load /sitemap_index.xml (or /sitemap.xml) in a browser: it must return without error and list the live, canonical, HTTPS URLs – no 404s, no noindexed or redirected URLs.
- Edit robots.txt at the domain root and add the absolute sitemap line: Sitemap: https://yourdomain.com/sitemap_index.xml
- While in robots.txt, confirm nothing vital is disallowed (no Disallow: / and no blocking of CSS/JS or key directories).
- In Search Console, submit the sitemap (Indexing → Sitemaps) and confirm status reads Success with a plausible discovered-URL count.
- Re-check after content restructures – a sitemap full of redirects or deleted URLs tells Google the site is unmaintained.
Definition of done (QA checklist)
- Sitemap URL loads without error and contains only live, canonical, indexable URLs
- robots.txt contains the absolute Sitemap: line and blocks nothing essential
- Sitemap submitted in GSC with status "Success" and a sane URL count
- Excluded content (noindexed pages, attachments) absent from the sitemap
- Linked back to the definitive article and relevant siblings
- Complies with Blog Posting Guidelines (if it publishes content)
Example(s)
- Example needed – run the Meta-Article Prompt after first real run.
File in the zip: skills/digital-plumbing/create-xml-sitemap-and-reference-in-robots-txt.md. Download the Task Library zip.
Index: Task Library. Article guidelines.
