Sitemap SEO: 7 Proven Steps to Get Your Pages Indexed (2026)

Developer writing code on a laptop, working on sitemap SEO for a website
Jump to
  1. What is a sitemap?
  2. XML sitemap: the file Google actually reads
  3. Why sitemap SEO matters for your business
  4. Types of sitemaps: pick the right one
  5. What to include in your sitemap (and what to leave out)
  6. How to create a sitemap: my 7-step process
  7. How to submit a sitemap to Google
  8. WordPress sitemap: find it and fix it
  9. HTML sitemap: do you still need one?
  10. Sitemap SEO mistakes that cost rankings
  11. How to audit your sitemap in 10 minutes
  12. Frequently Asked Questions about sitemap SEO
  13. The bottom line

Most sites I audit have pages Google has never seen. The owner wrote the page, linked it once, and assumed Google would find it. Sometimes Google does. Sometimes the page sits undiscovered for months and earns nothing. Sitemap SEO fixes that gap. That work is sitemap SEO: building, submitting, and keeping up the file that tells Google which pages exist and which ones matter.

Sitemap SEO is the practice of creating and maintaining an XML sitemap so search engines can discover, crawl, and index your important pages faster. A sitemap lists your URLs with the date each page last changed. It does not raise rankings on its own, but it helps Google find new pages, updated pages, and pages with few internal links.

This guide walks through the whole sitemap SEO process. You will learn what a sitemap is and which type your site needs. You will also learn how to create one in WordPress or by hand, submit it to Google, and audit it when things go wrong. I use the same sitemap SEO process on client sites and on my own site, so every step below is one I have run myself.

What is a sitemap?

A sitemap is a file that lists the important pages on a website. It tells search engines where those pages live and when they last changed. Think of it as a map you hand to Google instead of making Google guess its way through your site. The map does not replace good internal links. It works next to them, and it catches the pages your links miss.

There are two kinds. An XML sitemap is a file written for search engines. A human never needs to read it. An HTML sitemap is a page written for visitors, a list of links they can click. This guide focuses on the XML kind, because that is the one that affects indexing, and it is the heart of sitemap SEO. The HTML kind gets its own section near the end.

Sitemap SEO is not a ranking tool. Google says so plainly in its own Search Central docs, and my audits back that up. A sitemap will not push a weak page to page one. What sitemap SEO does is make sure Google knows the page exists. For a new site, a large site, or a site that publishes often, sitemap SEO matters a lot. A page Google never finds cannot rank at all.

XML sitemap: the file Google actually reads

An XML sitemap is the file at the center of sitemap SEO. It is a plain text file in XML format. It lives at an address like yoursite.com/sitemap.xml. Each entry lists one URL, plus optional notes about that URL. The file follows the sitemap protocol published at sitemaps.org, a standard Google, Yahoo, and Bing agreed on years ago. You can read the full protocol on the sitemaps.org protocol page if you want the technical detail.

A single entry looks like this in plain terms: the page address, the date it last changed, and nothing else that matters. Two tags you will see in old guides are priority and changefreq. Priority was meant to say how important a page is, from 0.0 to 1.0. Changefreq was meant to say how often a page changes. Google ignores both of them. I still see sitemap tools that fill these tags in by default, and I still see guides that treat them as ranking signals. They are not. Leave them out, or leave them at their defaults, and spend the effort on the URL list instead.

The tags that matter for sitemap SEO are few. The URL itself, written as an absolute address with https, is required. The lastmod date is optional but useful, because Google uses it to spot pages that changed since the last crawl. If your lastmod dates lie, Google stops trusting them. Keep them honest, and update them only when the page really changes.

Two hard limits apply to every XML sitemap, and they shape any sitemap SEO plan. A single file holds at most 50,000 URLs, and its uncompressed size must stay under 50 MB. Most small business sites never come close. Large sites split their URLs across several sitemap files and list them all in a sitemap index file. The index file is a sitemap of sitemaps. It can point to up to 50,000 sitemap files, which is far more than any normal site needs.

Why sitemap SEO matters for your business

Sitemap SEO pays off in four situations. First, a new site has few backlinks, so Google may take weeks to find its pages through links alone. Sitemap SEO shortens that wait with a submitted file. Second, a large site has pages buried deep in its structure, and crawlers may never reach them. The sitemap hands Google the full list. Third, a site that publishes daily or weekly needs new pages found fast. The sitemap flags them on the day they go live. Fourth, a site with orphan pages, pages with no internal links pointing at them, has no other way for Google to find those pages at all.

Small sites with strong internal links need sitemap SEO less. If your site has 20 pages and every page links to the rest, Google will find them. I still run sitemap SEO on small sites, because it costs nothing and it gives me the Search Console report that shows what Google did with each URL. That report alone is worth the ten minutes it takes to set the file up.

The business case for sitemap SEO is simple. Pages that are not indexed cannot bring in traffic, leads, or sales. Sitemap SEO is one of the cheapest ways to close that gap. It takes an hour to set up right, and then it runs itself as long as you check it now and then. If you want help with the technical side, my SEO services include sitemap setup and audits as part of a full technical review.

Types of sitemaps: pick the right one

Not every sitemap holds the same kind of content. Sitemap SEO covers five types, and most sites need only one or two of them. The table below shows each type, what it holds, and who needs it.

Sitemap type What it lists Who needs it
Page sitemap Regular pages and blog posts Every site
Image sitemap Images on your pages Sites where image search brings traffic
Video sitemap Video files and their pages Sites where video drives traffic
News sitemap News articles from the last 2 days Approved Google News publishers only
Sitemap index Links to other sitemap files Large sites with many sitemaps

The page sitemap is the default in sitemap SEO. Every site should have one. Image sitemaps help when your images could rank in image search, such as product photos, infographics, or portfolio work. Google usually finds images through the page HTML anyway, so an image sitemap is a bonus, not a must. Video sitemaps matter when video is a real traffic source for you. If you embed a few YouTube videos, you can skip it. If you host original video and want it found, add one.

News sitemaps have strict rules. They hold at most 1,000 URLs, and every article must be less than two days old. Only publishers in Google News can use them, and the sitemap does not help normal rankings. If you run a news site, you know it. If you do not, ignore this type.

What to include in your sitemap (and what to leave out)

In sitemap SEO, a sitemap should hold only pages you want Google to index. That sounds obvious, yet most sitemap errors I find come from breaking this rule. Before you generate the file, decide what belongs in it. That choice is the core of sitemap SEO.

Include pages that return a 200 status, have a canonical URL pointing at themselves, and hold content worth ranking. That means your service pages, your blog posts, your key category pages, and any landing page you want found. Include new pages right away, so Google sees them in the next crawl. Include pages with few internal links, because the sitemap may be their only route into the index.

Leave out anything Google should not index. That list is longer than most owners expect:

  • Pages marked noindex. A sitemap that lists a noindex page sends Google two opposite signals, and Google notices the conflict.
  • Redirected URLs. List the destination, never the source. Google follows the redirect anyway, so the source URL wastes crawl effort.
  • 404 and gone pages. Broken URLs in a sitemap hurt the trust Google places in the file.
  • Duplicate URLs. Use the canonical version only, with the same https address and the same trailing slash your site uses.
  • Admin, login, cart, checkout, and thank you pages. These hold no search value and should never appear in a sitemap.
  • Internal search result pages. Google does not want them, and listing them can look like thin content at scale.
  • Staging or test URLs. A staging copy of your site should never feed its URLs into your live sitemap.

One quick test catches most of these problems. Open your sitemap, pick five URLs at random, and check each one in a browser. If any URL redirects, shows an error, or opens a page you would not want in search results, your sitemap needs cleaning. I run this test on every audit, and it finds something wrong more often than not. My technical SEO audit checklist covers the same check as part of its 14 steps.

Laptop showing Google Analytics during a sitemap SEO audit

How to create a sitemap: my 7-step process

Creating a sitemap takes less time than most owners expect. The sitemap SEO steps below work for a WordPress site, a Shopify store, or a custom build. Follow them in order, and check each step before moving on.

Step 1: Find the sitemap you already have

Before you build anything, check whether a sitemap already exists. This first sitemap SEO check saves wasted work. Add /sitemap.xml to your domain in a browser, then try /sitemap_index.xml. WordPress sites with an SEO plugin usually have one already. If a file loads and lists your pages, you may only need to fix it, not build it. If both addresses show an error, move to step 2.

Step 2: Pick the right sitemap type

Most sites need a page sitemap only. Add an image sitemap if image search matters to you, and a video sitemap if you host original video. Skip the news sitemap unless you publish news. If your site has more than a few thousand URLs, plan a sitemap index file from the start, with one file per content type. Splitting by type makes errors easier to trace later.

Step 3: Generate the sitemap

Use your platform first, because good sitemap SEO builds on what your CMS already does. WordPress with RankMath or Yoast builds the sitemap for you and updates it when you publish. Shopify builds one automatically at /sitemap.xml. Wix does the same. If your site is custom built, use a crawler tool such as Screaming Frog to generate the file, or ask your developer to build one from the database. Avoid online generator tools that crawl your site once and hand you a static file. That file goes stale the day you publish your next post, and a stale sitemap is worse than no sitemap at all.

Step 4: Clean the URL list

Open the generated file and check it against the sitemap SEO rules in the section above. Remove noindex pages, redirects, errors, duplicates, and admin pages. Check that every URL uses https and the same www or non-www form your site uses. Check that lastmod dates are real. This is the step most people skip, and it is the step that causes most sitemap SEO errors in Search Console.

Step 5: Submit the sitemap to Google

Open Google Search Console, pick your property, and go to Indexing, then Sitemaps. Paste the sitemap address and click Submit. Google reads the file within hours in most cases, though indexing the pages inside it takes longer. You can read the exact submission steps in Google’s own sitemap documentation. Submit the same file to Bing Webmaster Tools too. It takes two minutes, and Bing powers more search traffic than many owners realise.

Step 6: Add the sitemap to robots.txt

Add one line to your robots.txt file: Sitemap, followed by the full sitemap address. This tells every crawler where the file lives. Bing, Yahoo, and smaller search engines read the same line. Crawlers check robots.txt first when they visit a site, so this line is the fastest way to point them at your sitemap. If you are unsure how robots.txt works, my robots.txt guide walks through the file line by line.

Step 7: Check it every month

A sitemap is not a one-time job. Pages get deleted, URLs change, plugins update, and any of these can break the file. Put a monthly check on your calendar. Open the sitemap, confirm it loads, and open the Sitemaps report in Search Console to confirm the status still says Success. That five-minute check catches problems before they cost you traffic.

How to submit a sitemap to Google

Submission itself is quick, and it is the simplest part of sitemap SEO. The part people get wrong is what happens after. Open Google Search Console and go to the Sitemaps report under Indexing. Enter the sitemap URL, usually sitemap.xml or sitemap_index.xml, and submit it. The report then shows a status for the file: Success, Couldn’t fetch, or an error with details.

Success means Google read the file. It does not mean every URL inside it is indexed. Click the sitemap row to see how many URLs Google discovered and how many it indexed. A gap between those two numbers is normal. Google indexes pages it finds useful, and it may skip thin or duplicate pages even when they sit in your sitemap. If the gap is large, the problem is usually the pages, not the sitemap. My Google Search Console guide explains how to read these reports in more detail.

If the status says Couldn’t fetch, Google could not load the file at all. Check that the address is right, that the file loads in a browser, and that your server is not blocking Googlebot. A robots.txt rule or a firewall can block the sitemap by mistake. I have seen this on sites where a security plugin blocked all bots except a short allowlist. Fix the block, then click the three-dot menu next to the sitemap and ask Google to try again.

Resubmitting the same sitemap every week does not speed things up. Google re-reads sitemaps on its own schedule, and it re-reads them often. Submit once, fix errors when they appear, and let Google do the rest. If you publish a new post and want it found fast, use the URL Inspection tool in Search Console to request indexing for that one page. That is the fast lane for single pages, and it works next to the sitemap.

WordPress sitemap: find it and fix it

WordPress has built a sitemap into its core since version 5.5, so basic sitemap SEO works out of the box. It lives at /wp-sitemap.xml and updates itself when you publish. Most sites never use it, because an SEO plugin replaces it with a better one. RankMath, which I use on this site, builds its sitemap at /sitemap_index.xml and splits it into smaller files by content type: one for posts, one for pages, one for categories. Yoast does the same at a similar address.

To find your sitemap SEO file, open yoursite.com/sitemap_index.xml in a browser. If a list of sitemap files loads, your plugin is doing its job. If you see the plain WordPress sitemap instead, your plugin may not be generating one, or the plugin sitemap may be turned off in its settings. Check the plugin settings first. In RankMath, the switch sits under Sitemap Settings. Make sure the sitemap is enabled and that the post types you want indexed are turned on.

Two WordPress sitemap SEO problems show up in my audits again and again. The first is attachment pages in the sitemap. WordPress creates a page for every image you upload, and some sitemap setups include those pages. They are thin pages with no value, and they bloat the sitemap. Turn them off in the plugin settings. The second is tag and category pages with one post each. These thin archive pages rarely deserve a place in the sitemap. If a category has real content and real traffic, keep it. If it holds one post, leave it out and let the post itself carry the weight.

HTML sitemap: do you still need one?

An HTML sitemap is a normal page on your site that lists links to your main pages. Visitors can open it and click through your site structure. Years ago, every SEO guide told you to build one. Google’s John Mueller said in 2022 that HTML sitemaps should never be needed, and that a site with clear navigation does not need one. I agree with him for most sites. If your visitors need a sitemap page to find things, your navigation needs work, not a sitemap page.

There are two cases where an HTML sitemap still helps. The first is a very large site with thousands of pages, where a single page of links gives users one more way to browse. The second is accessibility: some users navigate better through a plain list of links than through menus and dropdowns. If either case fits your site, build the page with your main sections only. Do not list every URL. A page with 5,000 links helps no one.

Do not confuse the two kinds when you read old sitemap SEO guides. Advice written for HTML sitemaps does not apply to XML sitemaps, and the reverse is also true. When someone says a sitemap helps users, they mean HTML. When someone says a sitemap helps Google find pages, they mean XML. Your site needs the XML file. The HTML page is optional.

Sitemap SEO mistakes that cost rankings

Most sitemap SEO problems come from a short list of errors. I see the same ones on audit after audit, and each one has a simple fix.

Noindex pages in the sitemap

This is the most common error I find. A page is marked noindex, yet it sits in the sitemap telling Google to crawl it. Google reads the conflict and loses trust in the file. The fix is simple: a page is either in the sitemap or it is noindex, never both. Pick one.

Stale lastmod dates

Some sitemap tools stamp every URL with today’s date on every rebuild. Others never update the date at all. Both are wrong. Google checks lastmod against what it knows about the page, and it stops trusting dates that lie. Set lastmod to the date the page content last changed in a real way. A typo fix does not count. A new section does.

Redirect chains and broken URLs

In sitemap SEO, a file full of redirects wastes crawl budget and confuses Google about which URL is the real one. Run a crawl with Screaming Frog or a similar tool, filter for 3xx and 4xx URLs, and remove every one of them from the sitemap. Replace each redirect source with its destination. If you recently changed your URL structure, this check matters even more. My 301 redirect guide covers how to handle moved URLs cleanly.

One giant sitemap for a huge site

A site with 40,000 URLs in one file is hard to debug. When one URL breaks, the whole file can fail. Sitemap SEO splits large sites into smaller sitemaps by type or by section, and lists them in a sitemap index. A post sitemap, a page sitemap, and a product sitemap are easier to check than one file with everything in it.

Forgetting the sitemap after a redesign

Redesigns break sitemap SEO more than any other event. URLs change, the plugin changes, the sitemap address changes, and no one checks. After any redesign or migration, open the sitemap first, before you check anything else. Confirm it loads, confirm it lists the new URLs, and resubmit it in Search Console. I include this step in every migration audit, and it has saved clients from weeks of missing pages. If you are planning a redesign, my SEO audit guide shows the full pre-launch check I run.

How to audit your sitemap in 10 minutes

You do not need a tool subscription for a sitemap SEO audit. Ten minutes and a browser are enough for the basic version. Run this check once a month, and after every redesign or plugin change.

  1. Open your sitemap address in a browser. It should load fast and show a list of URLs. If it errors or loads slowly, fix that first.
  2. Count the URLs. Does the number roughly match the pages you expect? A site with 60 blog posts and 10 service pages should show around 70 URLs, not 700.
  3. Click five URLs at random. Each one should load with a 200 status and show the page you expect. Note any redirect or error.
  4. Open the Sitemaps report in Search Console. The status should say Success, and the discovered URL count should be close to your count.
  5. Open the Pages report in Search Console. Look for indexed pages that are not in your sitemap, and sitemap URLs that Google has not indexed. Both lists tell you something: missing pages may need internal links, and unindexed sitemap URLs may need better content.
  6. Check robots.txt. Confirm the Sitemap line points at the live file, and confirm no rule blocks the sitemap address itself.
  7. Check lastmod dates. Pick three recently updated pages and confirm their dates in the sitemap match the real edit date.

If any step fails, fix it before the next check. A sitemap SEO audit is a small job, and it pairs well with a wider technical review. My crawl budget guide explains how sitemaps and crawl budget work together on larger sites.

Frequently Asked Questions about sitemap SEO

What is a sitemap?

A sitemap is a file that lists the important pages on a website so search engines can find them. The XML kind is written for search engines, and the HTML kind is a page of links for visitors. Most sitemap SEO work uses the XML sitemap, because that is the file Google reads to discover and index pages.

What is a website sitemap?

A website sitemap is the full map of a site’s important pages in one file. It usually lives at an address like yoursite.com/sitemap.xml and lists each page with the date it last changed. Search engines use it to find new pages, updated pages, and pages with few internal links.

How do I create a sitemap?

Use your platform first. WordPress with RankMath or Yoast builds one for you, and Shopify builds one automatically. For a custom site, use a crawler tool such as Screaming Frog to generate the file, or ask your developer to build it from the database. Check the URL list, submit it in Search Console, and add the address to robots.txt.

How do I submit a sitemap to Google?

Open Google Search Console, pick your property, and go to Indexing, then Sitemaps. Paste the sitemap address and click Submit. Google reads the file within hours in most cases. Check the status in the same report: Success means Google read it, while Couldn’t fetch means the file did not load and needs fixing.

How to generate a sitemap for a website?

Start by listing the pages you want indexed, then generate the file with your CMS, an SEO plugin, or a crawler tool. Keep only canonical, indexable URLs in the list, and leave out noindex pages, redirects, and errors. Split the file if it passes 50,000 URLs or 50 MB, and list the parts in a sitemap index file.

How can I find the sitemap of a website?

Add /sitemap.xml to the domain in a browser, then try /sitemap_index.xml. If neither loads, open /robots.txt and look for a line that starts with Sitemap. You can also search Google with the site operator, such as site:example.com filetype:xml, to find indexed sitemap files.

The bottom line

Sitemap SEO will not rank your pages for you. It will make sure Google knows they exist, and that is a step no site should skip. Build the file, keep the URL list clean, submit it to Google and Bing, and check it once a month. That is the whole sitemap SEO routine. The whole job takes an hour to set up and five minutes a month to keep up. Pages that Google never finds cannot bring in traffic, so give Google the map and let it do the rest.

If your site has pages that never show up in search, sitemap SEO is one of the first places I look. A full technical audit finds the rest, from crawl errors to thin content. If you want me to run that audit on your site, take a look at my SEO services and get in touch. I will tell you what is holding your pages back and what to fix first.

Need SEO help with your website?

I help businesses grow organic traffic, leads and revenue.

Work With Me More Blogs
Keep reading

More from the blog

Chat on WhatsApp