Skip to content

Web Development

What Is a Website Sitemap and Why Does It Matter?

A sitemap helps search engines find your pages. Learn what an XML sitemap is, how WordPress creates one and how to submit it to Google.

XML sitemap structure for a website

Search engines discover pages by following links. But new pages, deep pages or pages with few links can be missed. A sitemap gives search engines a clear list of the pages you want them to find. Here’s how it works.

What is a sitemap?

It’s a file — usually XML — that lists your website’s important URLs, often with the date each was last updated. Search engines read it to discover and crawl pages efficiently.

There are two types:

  • XML version — for search engines
  • HTML version — a page of links for visitors (optional)

Why it matters

  • Helps new websites get indexed faster
  • Helps large websites with many pages
  • Highlights updated content
  • Useful for pages with few internal links
  • Supports images, videos and multiple languages

It doesn’t guarantee indexing or rankings — but it makes discovery easier.

How WordPress creates one

  • WordPress core creates one at /wp-sitemap.xml
  • Yoast SEO creates /sitemap_index.xml and disables the core one
  • Rank Math works the same way

Most sites don’t need to build one manually.

What to include

  • Important pages, posts, services, products
  • Only canonical URLs that return a 200 status

What should NOT be in it

  • Pages with a 404 error or redirects
  • Thin pages like tag archives (often)
  • Thank-you pages, login pages, private content
  • Pages blocked by robots.txt or marked noindex

How to submit it to Google

  1. Open Google Search Console
  2. Go to Sitemaps
  3. Enter the file’s URL (e.g., sitemap_index.xml)
  4. Click Submit
  5. Check later for errors

Also add its URL to your robots.txt file.

Key Takeaways

  • A sitemap lists the pages you want search engines to find.
  • WordPress and SEO plugins create one automatically.
  • Include only important, working, indexable URLs.
  • Submit your sitemap in Google Search Console.

Further reading: Google Search Central: Learn about sitemaps

Frequently Asked Questions About a Sitemap

How often does it update?
Plugins update it automatically when you publish or edit content.

Does a small site need one?
It still helps, especially when the site is new.

Why are some listed pages not indexed?
Google decides what to index based on quality and relevance — see why your website isn’t showing up on Google.

Need technical SEO help?

Makto Mine sets up indexing, Search Console and technical SEO. Talk to us.

Related: How to Fix Broken Links

Leave a comment

Your email address will not be published. Comments are moderated before they appear.

Have a project in mind?

Tell us what your business needs. You will get a clear recommendation, a scope and a quotation — no obligation.