What is an XML sitemap?
An XML sitemap is a file in XML format that lists all the pages (URLs) of your site in an organised way, so that Google, Bing and other search engines can discover them more easily.
For each URL in the sitemap.xml file we can declare extra details, such as the date it was last updated. In other words, it works as a map of the site for search engines.
An XML sitemap isn’t a page visitors see. It’s a file read by bots such as Googlebot, which is why that’s where you should list the pages you consider important and want indexed.

What a sitemap.xml file looks like
A sitemap.xml file has a specific structure with tags. Here’s a simple example:
<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<url>
<loc>https://www.example.com/</loc> <!– the page address –>
<lastmod>2026-08-01</lastmod> <!– last updated date –>
</url>
<url>
<loc>https://www.example.com/blog/</loc>
<lastmod>2026-07-20</lastmod>
</url>
</urlset>
Why an XML sitemap matters for SEO
An XML sitemap helps Google discover your pages quickly. It works as a priority list for crawling.
It is especially useful in four cases. On new sites without many backlinks. On large sites with thousands of pages. On sites with weak internal linking. For pages that sit deep in the structure.
Note one thing. A sitemap helps discovery, not ranking. On its own it doesn’t push a page up the results. It simply makes sure Google finds it.
What information an XML sitemap contains
An XML sitemap mainly contains URLs and a few optional elements. There are four basic tags.
<loc>: the full address of the page. It is required.<lastmod>: the date of the last update.<changefreq>: how often the page changes.<priority>: the relative importance of the page.
Today Google largely ignores changefreq and priority. It mainly pays attention to loc and lastmod. So don’t spend time setting priority page by page.

How to create an XML sitemap
Most of the time you don’t need to write code. A tool generates the file for you.
In WordPress
In WordPress, an SEO plugin generates sitemap.xml automatically. Yoast SEO creates a sitemap index at /sitemap_index.xml. Rank Math and AIOSEO do the same. You just need to enable the XML sitemap feature in the settings. Even WordPress core generates a basic sitemap at /wp-sitemap.xml.
On a custom site or without a plugin
On a custom site, use a crawler or a generator. Screaming Frog crawls the site and exports a ready-made XML. For small sites there are also online generators. Developers can generate it dynamically from within the application.
How to submit it to Google
- Find the URL slug of your sitemap. It will be sitemap_index.xml or sitemap.xml, or whatever the plugin you use has created.
- Open your Google Search Console with an email that has access and click “Sitemaps” in the left menu.
- Then paste the sitemap’s URL slug into the field “Add a new sitemap”.
- Click Submit and you’re done. If you did everything correctly, you’ll see its status below as “Success”.

I recommend also adding your sitemap.xml at the end of your robots.txt, like this: Sitemap: https://www.example.com/sitemap_index.xml, so you can be sure Google and LLMs will see it.
How we manage the XML sitemap case by case
The right approach changes depending on the type of site. Below is what we do in three common cases.
On a lead generation site
On a lead gen site, keep the sitemap small and clean.
A lead gen site has few but critical pages: landing pages, service pages and forms. Put only those pages in the sitemap. Leave out the thank-you pages. Also exclude any page with a noindex tag. Declare lastmod on the landing pages you update regularly. Submit the file to Google Search Console.
On an e-shop
On an e-shop, use multiple XML sitemaps under one sitemap index.
An e-shop often exceeds 50,000 URLs. Split the sitemaps by content type. Create separate sitemaps for products, categories and articles. Add an image sitemap for product photos. Exclude pages with filters and parameters, such as ?sort= and ?color=. Leave out the sold-out products you redirect. Platforms like WooCommerce and Shopify generate XML sitemaps automatically.
On a multilingual site
On a multilingual site, add hreflang to the XML sitemap.
hreflang tells Google which language version matches each user. Declare each URL together with its alternative language versions inside the sitemap. Keep a consistent URL structure, for example /el/ and /en/. Tools such as Yoast SEO Premium and Weglot generate hreflang sitemaps.

Sitemap index: when the site grows
An XML sitemap holds up to 50,000 URLs and 50MB uncompressed per file. This is set by the Sitemaps protocol and confirmed by Google Search Central.
Above these limits, split the list into several files. A sitemap index brings them all together under one <sitemapindex> tag. Submit only the index to Search Console. SEO plugins do this automatically. Yoast, for example, provides sitemap_index.xml by default.
Common mistakes that cost you indexing
Most mistakes in an XML sitemap are a matter of cleanliness. Watch out for the five most common.
- Noindex pages inside the sitemap. You send Google a contradictory signal.
- Non-canonical or duplicate URLs. Include only canonical addresses.
- 404s and redirects. Keep only pages that respond with a 200 code.
- Forgotten updates. A static sitemap on a dynamic site goes stale quickly.
- The wrong expectation. A sitemap helps discovery. It doesn’t guarantee indexing.
Frequently asked questions
Do I need an XML sitemap if I have few pages?
Not always. A small site with good internal linking gets indexed without one. But it doesn’t hurt to have it. In practice we almost always recommend it.
How often is the sitemap updated?
Ideally automatically, with every new or updated page. SEO plugins such as Yoast and Rank Math do this on their own.
Do priority and changefreq matter?
Very little. Google largely ignores them. Focus on the correct addresses (loc) and on lastmod.
Does an XML sitemap improve rankings on Google?
No, an XML sitemap doesn’t improve your Google rankings. But it does help Google find your pages quickly. That’s the first step for them to appear in the results.
Where do I find my site’s sitemap?
Usually at /sitemap.xml or /sitemap_index.xml. You can also see it in Google Search Console.
The key takeaway
An XML sitemap is one of the simplest and most useful technical SEO tools. It gives Google a clean map of your pages.
For most sites, an SEO plugin sets it up in a few minutes. The care goes into keeping it clean and up to date. Include only the pages you really want indexed.
Would you rather not deal with sitemaps, robots.txt and indexing yourself?
At Aurora Digital Marketing we set up the technical SEO foundation so Google finds and understands every one of your pages correctly. See our SEO service in detail and learn more.
