Skip to main content

SEO

What Is a Sitemap?

An XML sitemap is a machine-readable list of the canonical URLs a website wants search engines to discover and consider for crawling. It is a useful discovery and monitoring aid, especially for new, large or frequently changing sites, but it neither replaces internal links nor guarantees indexing.

11 min readLast reviewed 24 July 2026Published by AHANIX WEB DESIGN LIMITED
WebsiteCanonical URLs
SitemapXML list
CrawlerDiscovery hint
On this page

01

Use a sitemap as a discovery signal, not a shortcut

A sitemap tells a search engine which URLs the site prefers and may include trustworthy last-modified information. It is particularly useful when pages are new, deep, media-heavy or difficult to discover quickly. Small well-linked sites still benefit from a clean generated sitemap and its Search Console reporting.

Submission is a hint. Search engines decide when to crawl and whether to index each page. A URL present only in a sitemap but absent from navigation may be an orphan, and inclusion cannot compensate for thin content, noindex directives, duplicate canonicals or server errors.

02

Include only canonical, indexable destinations

List absolute HTTPS URLs that return a successful response and represent the preferred version of useful public content. Keep the hostname and trailing-slash convention consistent with internal links and canonical tags.

Exclude redirects, error pages, noindex pages, internal search results, private areas and duplicate parameter variants. A common mistake is exporting every database record, including expired or unpublished content, then asking why Search Console reports exclusions.

  • Include: public canonical pages intended for search
  • Exclude: redirects and not-found URLs
  • Exclude: noindex, private and duplicate variants
  • Investigate disagreements between sitemap and canonical signals

03

Generate, escape and split the file safely

Let the website platform generate the file from published canonical records where possible. Encode XML correctly, escape reserved characters and use accurate last-modified values based on meaningful content changes rather than setting every URL to today on every request.

A single sitemap is limited to 50,000 URLs or 50 MB uncompressed under the commonly supported protocol. Larger sites use several files referenced by a sitemap index. Separate files by useful page type only when that helps monitoring; the URL order itself is not a priority signal.

04

Publish, submit and monitor the result

Place the sitemap at a stable public URL, reference it in robots.txt where appropriate and submit it through the verified Search Console property. Check that the declared sitemap address, site protocol and host all agree.

Review processing errors and compare submitted URLs with indexed outcomes by page type. A sudden fall can reveal an accidental noindex, canonical change, failed deployment or removed content. Do not repeatedly resubmit an unchanged file instead of correcting the underlying cause.

Practical next steps

Checklist

  1. 01Choose the canonical protocol, host and URL format
  2. 02Generate from published public records
  3. 03Exclude redirects, errors, noindex and private pages
  4. 04Use fully qualified escaped URLs
  5. 05Provide meaningful last-modified dates where reliable
  6. 06Validate the XML and response status
  7. 07Reference and submit the stable sitemap URL
  8. 08Monitor processing and indexing differences

Common questions

Questions and answers

Does every website need an XML sitemap?

A very small, well-linked site may be discoverable without one, but a clean generated sitemap is usually a low-cost aid for discovery and monitoring.

Does a sitemap guarantee indexing?

No. It helps discovery and states preferred URLs, but search engines still evaluate access, canonical signals, content and other factors.

Should images and videos have separate sitemaps?

Only when the site has a meaningful media discovery need. Image and video information can also be included through supported sitemap extensions.

How often should a sitemap update?

Update it when indexable canonical URLs or meaningful modification dates change. Dynamic sites commonly generate it automatically.

Need a considered recommendation?

Discuss the website, not just the symptom.

AHANIX reviews each requirement manually. Technical recommendations may depend on access to the website, hosting or DNS configuration.

Generate a Clean XML Sitemap

Continue learning

Related Ahanix guides