XML Sitemap

Submit your details and request your SEO Audit 

SEO Glossary: Technical SEO

XML sitemap illustration: a site tree of linked pages branching from one sitemap file

Your menu shows visitors where to go. An XML sitemap does the same job for search engines, listing the pages you want found in one tidy file.

What an XML sitemap is

An XML sitemap is a machine readable file that lists the URLs on your website you want search engines to know about. Each entry can include the date the page last changed. Search engines use it as a discovery aid alongside links, which is especially helpful for new pages, deep pages and sites without many backlinks yet.

A sitemap is a hint, not a command. Listing a page does not guarantee it will be indexed, and leaving a page out does not stop Google finding it through links.

Why it matters for small business sites

Many South African business sites add pages in bursts: a new service, a few location pages, a batch of blog posts. Without a sitemap, Google relies on finding links to those pages, which can take time if they are not in the main menu. A clean sitemap speeds up discovery and gives you a clear record, inside Search Console, of how many of your listed pages are actually indexed.

What a good sitemap looks like

Only real, live pages

Every URL should return a 200 status, be the canonical version and be indexable. No redirects, 404s or noindexed pages.

Split by type

WordPress SEO plugins such as Rank Math create a sitemap index that links to smaller sitemaps for pages, posts and other content types. One sitemap file can hold up to 50,000 URLs.

Accurate dates

The last modified date should change only when the content really changes. Google largely ignores the old priority and change frequency fields.

Infographic of a sitemap index branching into page and post sitemaps, with what to include and exclude

Common sitemap mistakes

  • Listing redirected, deleted or noindexed URLs.
  • Including tag, author and attachment archives you do not want indexed.
  • Two plugins each generating a different sitemap.
  • Never submitting the sitemap, or forgetting to resubmit after a site move.
  • A sitemap that is blocked in robots.txt.

How to check and improve your sitemap

Open your sitemap in a browser, usually at /sitemap_index.xml on WordPress sites using Rank Math, and scan the URLs for anything that should not be there. In Google Search Console, go to Sitemaps, submit the index URL and check the status. Then open the Pages report, filter by that sitemap and compare submitted pages with indexed pages.

Add a Sitemap line to your robots.txt file so other search engines find it too, and exclude content types you do not want in search from your plugin settings.

How LSA helps

LSA a Local SEO Agency sets up and cleans sitemaps as part of our technical SEO services, so the file lists exactly the service, location and blog pages that matter, and nothing that wastes Google's time.

For the short definition, see XML Sitemap in our SEO Glossary, alongside the other technical SEO terms.

Need this fixed properly? Call LSA a Local SEO Agency on 068 786 7331 or contact us today.

Facebook
Twitter
LinkedIn