Create and submit an XML sitemap
Tell search engines exactly which pages to index with a machine-readable sitemap.
What it means
An XML sitemap is a file at /sitemap.xml that lists all your important pages, their last-modified dates, and how often they change. Search engines read it to discover content they might otherwise miss, especially on large sites or sites with few internal links.
Why it matters
Without a sitemap, search engines rely on crawling links to find pages. New or orphaned pages can go unindexed for weeks. A sitemap also lets you signal priority and freshness, giving you control over how Googlebot spends its crawl budget.
How to fix it
- Generate the sitemap: most CMS platforms (WordPress, Shopify, Webflow) do this automatically. Check Settings or install a plugin like Yoast SEO or Rank Math.
- For custom sites, use a sitemap generator tool (xml-sitemaps.com or a build-step library) or write the XML manually: each <url> entry needs a <loc> and ideally a <lastmod>.
- Place the file at https://yourdomain.com/sitemap.xml and verify it's publicly accessible.
- Reference the sitemap in your robots.txt file: add the line Sitemap: https://yourdomain.com/sitemap.xml at the bottom.
- Submit the sitemap in Google Search Console (Indexing → Sitemaps → Add). This triggers Googlebot to process it immediately.
- Exclude low-value pages: no-index pages, pagination, filtered URLs, and admin paths should not appear in the sitemap.
Common mistakes
- Listing redirected, noindexed or 404 URLs.
- Forgetting to reference the sitemap in robots.txt.
- Never resubmitting after the site structure changes.
How to check it worked
Submit the sitemap in Search Console → Sitemaps. The status should read 'Success' and the discovered-URL count should match your page count.
Helpful tools
- Google Search Console
- Yoast SEO (WordPress)
- xml-sitemaps.com
Not sure if this affects your site? Analyze your website for free or compare it with a competitor.
Related guides
- Fix the robots directive blocking Google: A noindex or robots.txt rule is telling search engines to stay away.
- Improve internal linking structure: Connect your pages with meaningful anchor text so search engines understand your site's hierarchy.
- Set a canonical URL: Tell Google which version of a page is the real one when several URLs serve it.
- Write a proper page title: The single most important on-page SEO element: 50 to 60 characters that sell the click.