How to Add an XML Sitemap
Publish a list of the URLs you want discovered, and tell search engines where it is.
A missing XML sitemap does not stop a site being indexed, but it removes the fastest route to discovery — which matters most for large sites and for pages few internal links point at. The sitemap should list only canonical, indexable URLs; including redirects or noindex pages weakens the signal it carries.
Why It Matters
Around half of audited sites have no sitemap. It is also a diagnostic: Search Console reports how many submitted URLs were indexed, which is the clearest available answer to "is Google actually taking these pages".
How to Fix
Generate it from real data
Include only indexable canonicals
Split it if it is large
Advertise and submit it
Code Fix
xmlGET /sitemap.xml -> 404<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-09-03</lastmod>
</url>
</urlset>Platform-Specific Instructions
WordPress generates one at /wp-sitemap.xml; most SEO plugins replace it with their own. Do not leave both live.
app/sitemap.ts generates it. Read the URL list from your content source rather than hardcoding it.
Fixed that one.
Now find the rest.
A free audit ranks every issue on your site by the score points it costs — and links each one straight to its guide.
Run a free audit