Sitemaps for a small business site: do you need one, and how to make it
A list of your pages for crawlers. Short to write, easy to get slightly wrong.
A sitemap is a file that lists the pages on your site so search engine crawlers can find them. It doesn't change what anyone sees, and on a small site it is often optional. It is also one of the cheapest things to get right, so here is what it is, when it matters, and how to write one without a plugin.
Do you need one?
Google's sitemap overview answers this directly. You might not need one if your site is "small," which Google puts at about 500 pages or fewer that you want in search, and if every important page can be reached by following links from your home page. You're more likely to need one if your site is new and few other sites link to it, or if it's large, or if it has a lot of video, images or news.
Most local business sites are small, so a sitemap is rarely the thing standing between you and search traffic. But a new site with no outside links fits the "new" case exactly, and it takes ten minutes. We'd add one.
Google also says a sitemap is a hint, not a command. Submitting one doesn't guarantee Google will crawl the URLs in it or index them.
What one looks like
The format is defined at sitemaps.org and is shared by the major search engines. A small site's sitemap can be this short:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-10-20</lastmod>
</url>
<url>
<loc>https://example.com/services</loc>
<lastmod>2026-09-02</lastmod>
</url>
<url>
<loc>https://example.com/contact</loc>
<lastmod>2026-06-15</lastmod>
</url>
</urlset>
The parts:
<urlset>wraps everything and names the sitemap format.- One
<url>per page. <loc>is the page's full address, starting withhttps://. Google asks for complete URLs, not relative paths like/services.<lastmod>is the date the page last changed in a meaningful way. A plainYYYY-MM-DDdate is allowed.
The rules that matter
- Save it as UTF-8. Both Google and sitemaps.org require it. Any plain text editor can do this.
- Escape ampersands. If a URL contains
&, write it as&, or the file won't parse. - Same host only. A sitemap on
www.example.comcan only list pages onwww.example.com, not on a subdomain or a different domain. - Size limits. One sitemap can hold up to 50,000 URLs or 50MB uncompressed. Small sites will never come close.
- List the URL you want shown. If your pages work both with and without
.html, or with and withoutwww, list the version your canonical tags point to. Don't list both. - Leave out pages you don't want found: thank-you pages, test pages, anything marked
noindex.
lastmod: tell the truth or leave it out
This is the most common sitemap mistake on small sites: a plugin or script that stamps today's date on every page, every day. Google says it only uses <lastmod> when the value is consistently and verifiably accurate. It counts real changes to the main content, structured data or links as updates, and says changing a copyright date in the footer generally doesn't count. Sitemaps.org says the date should reflect when the page changed, not when the sitemap was generated.
So when you edit your services page, update that page's date. Leave the others alone. If you can't keep dates honest, leave <lastmod> out entirely.
Skip priority and changefreq
The sitemaps.org format also allows <priority> and <changefreq>. Google says it ignores both. They don't hurt, but you don't need them.
Where to put it and how to tell search engines
- Upload it to the top folder of your site:
https://yourdomain.com/sitemap.xml. - Open that address in a browser. You should see the XML, not an error page.
- Add a line to your robots.txt pointing to it, using the full address:
Sitemap: https://yourdomain.com/sitemap.xml
Google says it picks this up the next time it reads robots.txt, and the sitemaps.org format defines the same line for any search engine. - In Google Search Console, open the Sitemaps report and submit the address. The report then shows whether Google could read it and how many URLs it found.
IndexNow, briefly
IndexNow is a separate system for telling search engines a URL was added, changed or removed. Its FAQ lists Amazon, Bing, Naver, Seznam.cz, Yandex and Yep as participants. Google is not on that list. It works by hosting a key file on your site to prove ownership, then sending the changed URLs. The FAQ says submitting a URL doesn't guarantee it will be indexed.
Website builders
Your website builder may already make a sitemap for you. Before writing your own, try opening /sitemap.xml on your site. If one is there, check two things: that it lists the pages you care about, and that the dates aren't all today's. If both look right, you're done.
When you remove or move a page
Sitemaps go stale quietly. When you delete a page, take it out of the sitemap the same day. Let the old address return a real "not found" (a 404 status code); Google's JavaScript SEO guide asks for accurate status codes like 404 for pages that don't exist, instead of a "page not found" message on a page that still reports success. When you move a page to a new address, list only the new address, and point the old one at it with a permanent redirect if your host allows it.
A simple routine for a hand-made sitemap: keep it in the same folder as your site files, and make "update sitemap.xml" the last step every time you add, rename or delete a page. Once a quarter, open the Sitemaps report in Search Console and look for errors or a page count that doesn't match what you expect.
How it connects to the rest
A sitemap helps crawlers find pages. It doesn't tell them what your business is; that's what structured data does. It also doesn't override robots.txt: if a page in your sitemap is blocked in robots.txt, the block wins for crawlers that obey it. Keep the two files consistent.
Sources
- Google Search Central: What is a sitemap
- Google Search Central: Build and submit a sitemap
- sitemaps.org: Sitemaps XML format
- IndexNow FAQ
Checked October 2026.