Skip to main content
Website guides
Technical SEOeasy6 min

How to Add an XML Sitemap So Google Can Find Every Page

An XML sitemap is a map of your site handed straight to search engines. Here is how to create one, point Google at it, and confirm your pages are getting indexed.

Reviewed by Jacob Rhinehart for Strelva's co-founder; products and operations lead responsibilities.

An XML sitemap is a single file that lists the pages you want search engines to index. It will not magically rank you, but it removes a real failure mode: pages that Google never finds because nothing links to them well. If your site is new, large, or lightly linked, a sitemap is the cheapest way to make sure nothing important stays invisible.

What a sitemap actually does

It hands search engines a clean list of your canonical URLs so they do not have to discover everything by following links. That speeds up the discovery of new pages and helps Google understand which version of a URL you consider the real one.

Step by step

  1. Check whether you already have one. Visit yoursite.com/sitemap.xml and yoursite.com/sitemap_index.xml. Most modern platforms and SEO plugins generate one automatically. If you see XML listing your pages, you already have it and can skip to submission.
  2. Generate or enable it. On a hosted platform, turn on the sitemap setting (often in the SEO area) or install an SEO plugin. On a coded site, generate sitemap.xml at build time so it stays current, and place it in your web root.
  3. Include only the right URLs. List live, indexable pages using your canonical domain and HTTPS. Leave out admin pages, thank-you pages, redirects, and anything tagged noindex. Conflicting signals waste crawl budget.
  4. Reference it in robots.txt. Add a line at the end: Sitemap: https://yoursite.com/sitemap.xml, using the full absolute URL.
  5. Submit it to Google Search Console. Open the Sitemaps section, enter the sitemap path, and submit. Status moves from Pending to Success. Bing Webmaster Tools is worth a second submission.
  6. Confirm indexing. After a day or two, check the Pages report. The indexed count should roughly track your sitemap. A large gap usually points to content quality, not the sitemap itself.

Keep it healthy

An auto-generated sitemap updates when content changes; a hand-built one goes stale fast. Re-submit after a major restructure. If you pass 50,000 URLs, split into multiple files behind a sitemap index.

A sitemap is a small fix with a clear payoff: it closes the gap between publishing a page and Google knowing it exists.

Frequently asked

What business owners ask next.

Do I need a sitemap if my site is small?

It still helps, but it matters most for large sites, new sites, or sites with weak internal linking. For a tidy five-page site that is well linked, Google will likely find everything anyway. There is no downside to having one.

My sitemap shows 'Couldn't fetch' in Search Console. Why?

Confirm the URL loads in a browser, that robots.txt does not block it, and that your site is not geo-blocking or rate-limiting Googlebot. Then re-submit once it loads cleanly.

Pages are in my sitemap but still not indexed. Is the sitemap broken?

Usually not. A sitemap requests crawling, it does not guarantee indexing. Pages that are thin, duplicated, or noindexed will be skipped regardless. Improve the page and add internal links to it.

Rather have the website handled?

Strelva scopes and builds the site, then keeps the agreed surfaces current under a managed plan.

Get a quote