XML Sitemap Best Practices for Business Websites
You build a nice website, add helpful pages, and hit publish. But a few weeks later, some of your pages still don't show up on Google. Annoying, right? Most people blame their content. The real reason is often much simpler: Google hasn't found those pages yet.
An XML sitemap solves this problem. It's one of the easiest SEO tools out there, yet many business websites either set it up the wrong way or skip it completely. In this guide, we'll walk through XML sitemap best practices in plain, simple language. By the end, you'll know how to help Google find, understand, and index the pages that actually matter for your business.
What Is an XML Sitemap?
An XML sitemap is a file that lists the important pages on your website. It's like a menu you hand to search engines, saying, "Here are the pages I want you to know about."
Instead of hoping Google finds every page by clicking through links, you give it a clean, ready-made list. This file follows a common standard called the Sitemaps.org protocol, which Google, Bing, and other search engines all understand. So one good sitemap works everywhere.
Your visitors never see this file. It usually sits at an address like yoursite.com/sitemap.xml and quietly does its job for search engines alone.
Discovery vs Rankings (They're Not the Same Thing)
Here's the biggest myth about sitemaps, so let's clear it up early.
A sitemap helps with discovery, not rankings. Adding a page to your sitemap will not push it to the top of Google. What it does is help Google find your pages faster.
Think of it like this. Your sitemap is the front door that lets Google into your house. But once inside, Google decides which rooms are worth showing to visitors. That decision, your ranking, depends on good content, useful information, and links pointing to your pages.
So a sitemap can't rank a bad page. But without it, even your best page might never be found. Discovery comes first. Ranking comes later.
Why does this matter for your business?
- Faster indexing. New service pages and blog posts get noticed sooner.
- Better coverage. Pages buried deep in your site still get found.
- Rescued orphan pages. If a page has no links pointing to it, your sitemap may be the only way Google spots it.
- Smarter crawling. On bigger sites, a clean sitemap helps Google spend its time on pages that truly matter.
XML Sitemap vs HTML Sitemap
These two names sound similar, but they serve very different people.
An XML sitemap is made for search engines. It's a structured file that crawlers read to understand your site.
An HTML sitemap is made for humans. It's a normal webpage with links to your main sections, helping visitors move around a large site.
For getting your pages found and indexed, the XML sitemap is the one that counts. An HTML sitemap can improve user experience on big websites, but it's optional. If you can only do one, make it the XML version.
What to Include and What to Leave Out
A common mistake is stuffing every single URL into your sitemap. A messy sitemap sends mixed signals and wastes Google's time on pages that don't deserve it. Keep it clean and focused.
The golden rule: only include canonical pages that return a 200 status (pages that load normally) and that you genuinely want showing up in search results.
Pages you should always include:
- Your homepage
- Core service and product pages
- Important category or collection pages
- Blog posts and guides you want to rank
- Your About and Contact pages
Pages you should leave out:
- Pages with a noindex tag (you're telling Google to skip them, so listing them makes no sense)
- Redirected URLs (301 or 302)
- Broken pages that return 404 errors
- Duplicate URLs that point to a different main version
- Filtered or parameter versions of the same page
- Thin utility pages like thank-you pages, login screens, and cart pages
Every URL in your sitemap is a signal that says, "This page matters." So only list pages you'd be happy to see rank. Remember, leaving a page out of your sitemap doesn't stop Google from indexing it if links point to it. If you truly want a page hidden, use a noindex tag.
XML Sitemap Best Practices
Now let's look at the habits that separate a helpful sitemap from one that quietly hurts you.
Keep It Clean and Up to Date
Your sitemap should update on its own as you add, remove, or change pages. A stale sitemap that lists deleted pages or misses new ones just confuses crawlers. Every now and then, open your sitemap in a browser and check for anything odd, like old URLs or test pages.
Only List Indexable Pages
This is worth saying twice because it trips up so many sites. If a page is redirected, broken, blocked, or set to noindex, it doesn't belong in your sitemap. A clean list of indexable pages tells Google you know exactly which pages count.
Handle the lastmod Tag Honestly
The lastmod tag tells search engines when a page was last meaningfully updated. Used honestly, it's a helpful nudge that tells Google to recrawl pages you've actually improved.
But don't fake it. If your system stamps today's date on every page every single day, Google learns the signal is useless and starts ignoring it. Only update lastmod when the content really changes. Honest dates build trust. Fake ones destroy it. Also, Google ignores the old priority and changefreq tags, so don't waste time on those.
Keep Your URLs Clean
Messy URLs with lots of parameters create duplicate pages and clutter your sitemap. Stick to tidy, readable URLs. If you want to go deeper on this, our guide to SEO-friendly URLs explains why clean URL structures make a real difference.
Add It to Robots.txt
Add one simple line pointing to your sitemap inside your robots.txt file:
Sitemap: https://yoursite.com/sitemap_index.xml
This gives crawlers another easy way to find your sitemap automatically. Getting these small technical details right across your whole site is exactly the kind of work covered in our technical SEO services.
Sitemap Index Files & XML Sitemap Creation
When You Need a Sitemap Index File
A single sitemap can hold up to 50,000 URLs or reach 50MB uncompressed, whichever comes first. Most small business websites never get close to that. But if you run a large blog or an online store with many products, you'll want a sitemap index file.
A sitemap index is basically a sitemap of sitemaps. Instead of one huge file, you split your content into groups (pages, posts, products) and list all those smaller sitemaps in one index. Then you submit just the index file, and Google finds everything under it. Good SEO plugins build this for you automatically.
How to Create an XML Sitemap
You have two easy paths, depending on your platform.
WordPress (Plugin Method)
If your site runs on WordPress, a plugin is the simplest option. Most trusted SEO plugins create a sitemap automatically, keep it updated, and let you control what's included, all without touching any code.
Here's the basic process:
- Install a reliable SEO plugin.
- Turn on the XML sitemap feature (it's usually on by default).
- Choose which content types to include, like pages and posts.
- Set thin content, like empty tag pages, to noindex so they drop out.
- Open your sitemap URL to confirm it's live.
That's it. The plugin handles the sitemap index, updates, and lastmod tags for you. Just check it once after setup instead of assuming it's perfect.
Non-WordPress Options
Not on WordPress? You still have simple choices:
- Website builders like Shopify, Wix, and Squarespace create a sitemap automatically. You just need to find its URL.
- Online sitemap generators can crawl your site and give you a file to upload to your root folder.
- Custom-built sites may need a developer to set up automatic generation, but the idea is the same.
Whatever your platform, the goal stays the same: a clean, auto-updating sitemap at a steady URL.
How to Submit a Sitemap to Google
Creating a sitemap is only half the job. Now you tell Google where to find it. The main tool for this is Google Search Console, which is free.
Log in to Google Search Console and pick your website property.
In the left menu, click Sitemaps.
In the box next to your domain, type just the sitemap part, like sitemap.xml or sitemap_index.xml. Don't paste the full address twice.
Click Submit.
Submission Is a Hint, Not a Command
Google will fetch the file and start reading it. Keep in mind that submitting is a hint, not a command. It doesn't force Google to crawl every listed page, but it's the clearest way to point crawlers in the right direction.
Don't stop at Google. Submit the same sitemap to Bing Webmaster Tools too, so Bing and other search engines that use its data can find your pages. The steps are almost the same: add your site, open the sitemap section, and submit your URL.
How to Check If Your Sitemap Is Working
This is the step most guides skip, and it's where the real value lives. Submitting a sitemap without checking the result is like posting a letter and never confirming it arrived.
Read the Sitemap Report
The Search Console sitemap report shows when your sitemap was last read, how many URLs it holds, and any errors. A "Success" status means Google read it fine.
Compare Submitted vs Indexed Counts
This number tells the real story. Search Console shows how many pages you submitted versus how many are actually indexed. A small gap is normal. A big gap is worth a closer look.
Say you submitted 50 pages but only 30 are indexed. Those missing 20 are telling you something.
Common reasons include:
- Pages seen as thin or low value
- Pages set to noindex by mistake
- Duplicate pages pointing to a different main version
- Pages Google found but hasn't crawled yet
Watching these numbers over time is a smart habit. It ties directly into how we help clients measure results through tracking and analytics (text) / seojerry.com/services/tracking-analytics/ (link).
Fix the "Couldn't Fetch" Error
If you see "Couldn't fetch" instead of "Success," don't worry. It usually means one of two simple things:
- The sitemap URL you typed is wrong. Double-check the exact address.
- Your robots.txt is blocking the file. Make sure nothing is disallowing it.
Fix the cause, then click your sitemap in the report and resubmit.
Common Sitemap Mistakes to Avoid
Even a well-built sitemap can trip you up. Watch out for these:
Listing noindex pages.
You're giving Google two opposite instructions at once.
Including redirected or broken URLs.
These waste crawl budget and make your sitemap look neglected.
Faking lastmod dates.
This destroys the tag's value, as we covered above.
Forgetting to submit it.
A sitemap Google never heard about does far less good.
Setting it once and forgetting.
Sites change, and an old sitemap may now list dead pages.
Most of these come down to one habit: treat your sitemap as something you maintain, not something you set once and ignore.
XML Sitemap Best Practices: Key Takeaways
Getting your sitemap right isn't hard once you know the rules:
A sitemap helps Google find your pages, not rank them.
Include only canonical, indexable pages you actually want in search.
Keep it clean, current, and honest with your lastmod dates.
Use a sitemap index once your site grows large.
Submit it to both Google Search Console and Bing Webmaster Tools.
Compare submitted vs indexed counts to catch problems early.
A well-kept sitemap is one of the easiest wins in SEO. It works quietly in the background, helping Google spend its time on the pages that grow your business. For a wider check-up, our technical SEO audit checklist (text) / seojerry.com/blog/technical-seo-audit-checklist/ (link) is a great next read.
Want to know if your sitemap and indexing are actually set up correctly?
We offer a free technical SEO audit that checks your sitemap, index coverage, and crawlability, then shows you exactly what to fix first. No pressure, just clear next steps.
Get Your Free Audit →Give your pages the visibility they deserve.