A dynamic sitemap is an XML sitemap that your website software builds from its own database each time it is asked for, so new, changed and deleted pages show up in it without anyone editing a file by hand. The opposite is a static sitemap: a file someone made once and saved on the server, which goes out of date the day a page changes.
What is a dynamic sitemap? #
An XML sitemap is a list of the addresses you want search engines to know about, often with the date each one last changed. A dynamic one is not stored as a finished file. When a crawler such as Googlebot requests it, your content management system reads its list of published pages and writes the XML on the spot. Google’s guide to building a sitemap says the best way is to let your website software generate it for you, and that systems such as WordPress, Wix and Blogger already make one available.
WordPress is a clear case. Since version 5.5 it serves a sitemap index at /wp-sitemap.xml. The WordPress core announcement explains that the files are served dynamically and split into pages for performance, so no physical XML files exist on disk. Each child sitemap holds up to 2,000 entries by default, and WordPress adds the index to the site’s robots.txt by itself.
Why does it matter for search? #
Crawlers discover the bulk of a site by hopping from link to link. A sitemap is a second route in, and it helps most on large sites, new sites with few backlinks, and pages buried deep in the site architecture. Google is clear that a sitemap is only a hint, not an order to index. But a hint only helps if it is true. A hand-made file that still lists deleted products sends crawlers to 404 pages and wastes crawl budget. A dynamic sitemap drops a page the moment you unpublish it.
The date field matters too. Google uses the lastmod value when it is consistently and verifiably accurate, and it ignores priority and changefreq altogether. Bing says the same in its July 2025 post on sitemaps in AI search: lastmod should reflect the true last change to the page content, and stamping every row with the time the sitemap was generated can misdirect crawling.
Why does it matter for AI answers? #
AI search tools lean on search indexes and their own crawlers. Bing’s post says visibility in AI-powered search depends on sending the right signals in both structure and speed, and it pairs sitemaps with IndexNow, which announces single changed URLs in real time. A sitemap that updates itself and an IndexNow ping on each save give an AI crawler or a search crawler a current, honest map of your pages. Bing adds that no tool can promise how your content appears in AI answers, so treat this as good hygiene for AI visibility, not a shortcut.
How does it work? #
- A crawler requests
/sitemap.xmlor the index named in robots.txt. - The server runs a query: every published, indexable page, with its address and last edit date.
- It writes the result as XML, often split into several files listed in a sitemap index.
- Many systems keep a short-lived cached copy so a busy crawler does not rebuild the list on every request.
The rules are the same as for any sitemap. The sitemaps.org protocol caps each file at 50,000 URLs and 50 MB uncompressed, lets an index point to up to 50,000 sitemaps, wants dates in W3C Datetime format such as 2026-11-25, and requires UTF-8 with characters like & escaped. Google asks for full, absolute addresses, not relative URLs.
Static or dynamic: which should I use? #
| Question | Static file | Dynamic sitemap |
|---|---|---|
| Who updates it? | A person or a script you run | The website, on every request |
| Risk of stale rows | High on busy sites | Low, if the query is right |
| Server load | None | Small; cache it on big sites |
| Best for | A 10-page site that rarely changes | Shops, blogs, news, anything that grows |
What are the common mistakes? #
- Listing pages you do not want indexed. A dynamic query that pulls every post can include pages marked noindex, redirects, or URLs whose canonical tag points elsewhere. Search Console then flags them in the page indexing report.
- Fake freshness. Setting every lastmod to “now” teaches search engines your dates mean nothing.
- Filter and parameter pages. On shops, faceted navigation can produce thousands of parameter URLs. Keep them out.
- Two sitemaps fighting. A plugin and the core feature both publish one, with different contents.
- Slow builds. A sitemap that takes 20 seconds to generate can time out. Paginate and cache it.
- Relying on the old ping. Google deprecated its sitemap ping endpoint in June 2023, and it now returns a 404. Submit in Search Console or list the sitemap in robots.txt instead.
A worked example #
Say a small online shop sells 1,800 products and adds 40 a month. Its old sitemap was exported by hand in spring. By November it lists 120 products that were withdrawn and misses 300 new ones. Search Console shows “Not found (404)” rows from the sitemap, and new lines take weeks to appear.
The fix: switch to the platform’s dynamic sitemap, remove the old file, and point robots.txt at the new index with one line, Sitemap: https://www.example.co.uk/sitemap_index.xml. Set lastmod from the product’s real edit time, not the stock-sync time, so a nightly stock update does not mark all 1,800 pages as changed. Exclude filter URLs and out-of-range pagination. Submit the index once in both Google Search Console and, for Bing, its webmaster tools, then send IndexNow pings for new products.
How do I check it? #
- Run our sitemap checker to see whether the file loads, parses and stays inside the limits.
- Use the lastmod checker to spot dates that are all identical or newer than the page itself.
- Pull every address out with the sitemap URL extractor and test a sample with the indexability checker.
- Confirm the Sitemap line with the robots.txt checker, and announce changes with our IndexNow tool.
- To watch it over time, our sitemap monitor (Pro) is being built for URSY Pro.
Our guide on how to use the sitemap checker walks through each result.
Questions #
Does a dynamic sitemap make Google index pages faster? #
Not by itself. It makes the hint accurate. Google still decides what to crawl and index, and pages can sit in discovered, currently not indexed for other reasons.
Do I need an HTML sitemap as well? #
No. An HTML sitemap is a page for people. It can help navigation but does a different job.
Can I include images? #
Yes. An image sitemap adds image tags to each page row, and many dynamic generators can add them for you.
Related words #
Sources #
- Google Search Central: Build and submit a sitemap, checked 25 November 2026
- Google Search Central blog: Sitemaps ping endpoint is going away (June 2023), checked 25 November 2026
- sitemaps.org: Sitemaps XML format, checked 25 November 2026
- Make WordPress Core: New XML sitemaps functionality in WordPress 5.5, checked 25 November 2026
- Bing Webmaster blog: Keeping content discoverable with sitemaps in AI powered search (July 2025), checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Dynamic sitemap. URSY. Updated 25 November 2026. https://ursy.com/wiki/dynamic-sitemap/ · Section links
Tools for this
- LiveXML Sitemap CheckerRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProAI door monitorllms.txt, feeds, sitemaps, MCP watched, with alertsIn URSY Pro →
- ProSitemap monitorSitemap errors and changesIn URSY Pro →
- ProImage SEO auditAlt text, sizes, formats, image sitemapsIn URSY Pro →