Drupal XML Sitemap: Generate, Submit and Fix It Today
By Toy Wen Da, Co-Founder · Updated · 5 min read · scored 91/100
A Drupal XML sitemap is a file that lists every page you want search engines to crawl and index, following the XML Sitemap protocol that search engines rely on. Drupal core doesn't build one for you, so you need a contrib module such as Simple XML Sitemap. Install it, choose which content types to include, and submit the resulting sitemap.xml to Google Search Console.

Before you change any settings, run your site through SearchBlueprint's free XML Sitemap Generator. It crawls your live site and builds a downloadable sitemap, which shows you exactly which URLs a crawler would find right now and whether your Drupal sitemap is missing pages before you start debugging modules.
How to create an XML sitemap in Drupal
Installing Simple XML Sitemap
Most current Drupal 9 and 10 sites use the Simple XML Sitemap module. Install it with Composer, then enable it from the Extend page in the Drupal admin toolbar. After enabling, go to Configuration > Search and Metadata > Simple XML Sitemap, where you control which entities (nodes, taxonomy terms, users) get added to your Drupal XML sitemap.
Configuring what gets included
Under the Simple XML Sitemap settings, each content type has an inclusion toggle and a priority/changefreq value. Turn on the types you want indexed, such as blog posts, product pages and landing pages, and leave out user profile pages and internal forms. Save the configuration, then use the "Rebuild queue" or "Generate sitemap" option on the same page to force Drupal to build the file.
Finding and submitting the file
Once generation finishes, the sitemap is available at yoursite.com/sitemap.xml. Open it in a browser to confirm it loads and lists real URLs. Then log into Google Search Console, pick your property, open the Sitemaps report and paste in sitemap.xml. Submission usually gets acknowledged within a few minutes, though full crawling can take longer.

When Drupal's own tools are enough, and when they're not

The right answer depends on the size of your problem. Drupal's sitemap module is enough for a standard site with a handful of content types, one language and no custom routing: if sitemap.xml loads and lists your pages, you're done and need no extra tooling.
It stops being enough in a few situations:
- A single URL is missing. A module rebuild regenerates everything but won't tell you why one product page didn't make the list, whereas a crawl-based checker shows that URL's status directly.
- The problem keeps coming back. If new content doesn't auto-add to the sitemap, the cause is usually caching or cron, and a one-time rebuild won't fix it permanently.
- You manage several Drupal sites, or client sites for an agency. Logging into each admin panel to check sitemap health doesn't scale, while a quick external crawl does.
- Images matter for your traffic. Drupal's default sitemap handles pages well and image metadata poorly. If product photos or blog images drive search traffic, see our guide on building an image sitemap Google will actually read.
Common sitemap problems in Drupal

| Problem | Likely Cause | Fix |
|---|---|---|
sitemap.xml returns a 404 |
Module not enabled or never generated | Enable Simple XML Sitemap, then run "Generate sitemap" manually |
| Sitemap loads but is nearly empty | Content types not toggled on in settings | Check inclusion settings per content type under Simple XML Sitemap configuration |
| New pages never appear | Cron isn't running, so the sitemap queue never rebuilds | Confirm Drupal cron is scheduled and running, not just configured |
| Sitemap includes unpublished or duplicate pages | Entity-level settings override global defaults | Review per-node sitemap settings, often found on the node edit form |
| Multilingual site shows only one language | Each language needs its own sitemap variant | Enable per-language sitemaps in the module's multilingual settings |
Common mistakes to avoid
- Forgetting to rebuild after changes. Editing which content types are included doesn't retroactively update
sitemap.xml, so you have to trigger generation again. - Submitting the wrong URL. Google Search Console wants the path to the sitemap file itself rather than your homepage.
- Ignoring cron health. A stalled cron job is the most common reason a Drupal sitemap goes stale without anyone noticing.
- Assuming one sitemap covers everything. Large catalogs or multilingual content often need sitemap indexes with several child files. Simple XML Sitemap supports them but doesn't enable them by default.
According to Google's Search Central documentation, sitemaps are especially useful for large sites, new sites with few external links, and sites with pages that aren't well linked internally. Many Drupal builds with deep taxonomy structures fit that description.
FAQs
Does Drupal have a built-in XML sitemap feature?
No. Drupal core doesn't generate sitemaps on its own. You need a contrib module, most commonly Simple XML Sitemap, to create and maintain a sitemap.xml file.
Where is the sitemap file located on a Drupal site?
Once a sitemap module is enabled and generated, it's typically available at yoursite.com/sitemap.xml. Some configurations use a sitemap index that links to multiple sub-sitemaps.
Why isn't my new content showing up in the sitemap?
Usually it's a cron problem. The sitemap queue rebuilds on cron runs, so if cron is stalled, new pages won't get added automatically. Check the content type's inclusion setting too.
Can I have a separate sitemap for each language on a multilingual Drupal site?
Yes. Simple XML Sitemap supports per-language sitemap variants, which you configure under its multilingual settings rather than relying on a single combined file.
How often should I resubmit my sitemap to Google?
You generally don't need to resubmit repeatedly, because Google revisits submitted sitemaps on its own schedule. Resubmit manually after a major structural change, like a large content migration or URL restructuring.
Get your Drupal sitemap checked properly
If you've enabled Simple XML Sitemap, generated the file and submitted it in Search Console, you've covered the basics of a Drupal XML sitemap. What's harder to see on your own is whether it's actually complete and current month over month. Talk to the team at SearchBlueprint to get a sample report showing exactly what your site's technical SEO, sitemap included, looks like right now.
Resources / References
Sources
About the author
SearchBlueprint researched, wrote and scored this article with the content pipeline our customers run on their own sites. The score in the byline is what our content engine gave this page before it published. Nothing here is reviewed by hand, which is the point: it is the product's output, published where anyone can check it.