Skip to content
bogl.ai

Fix guide

How to create a sitemap for your website

Create an XML sitemap on Wix, WordPress, Squarespace or Shopify, list it in robots.txt and submit it to Google. Most site builders already make one.

By bogl.ai · Updated

Check if your site has this problemFree, no sign-up · Score out of 100 · About 10 seconds

What the problem is

A sitemap is a file, usually at /sitemap.xml, that lists the pages on your website. We look for one there and in your robots.txt.

Why it matters for AI search

Crawlers find pages by following links. A sitemap makes sure they know about every page, including ones that aren't well linked, such as individual service or location pages.

How to fix it

  1. Check whether you already have one: open your web address followed by /sitemap.xml (WordPress's built-in one is at /wp-sitemap.xml).
  2. If you don't, turn it on in your site builder or SEO plugin, or ask your developer to add one.
  3. Add a line to your robots.txt pointing to it, like the one below, so every crawler can find it.
  4. Submit it in Google Search Console and Bing Webmaster Tools.
Example
Sitemap: https://www.yourbusiness.co.uk/sitemap.xml

On your site builder

Wix

  • Every Wix site has a sitemap at /sitemap.xml that updates automatically. Pages you've set not to be indexed are left out.

Squarespace

  • Squarespace creates a sitemap at /sitemap.xml, but not for trial, private or password-protected sites.

WordPress

  • WordPress creates one at /wp-sitemap.xml, but not while “Discourage search engines” is ticked. SEO plugins replace it with their own (Yoast SEO's is at /sitemap_index.xml). WordPress.com sites have one at /sitemap.xml.

Shopify

  • Shopify creates a sitemap at /sitemap.xml, but crawlers can't read it while the store is in private mode.

Menus change from time to time. If a setting has moved, your site builder's help pages will have the current steps.

How to check it's fixed

  • Open /sitemap.xml (or your plugin's sitemap address) and make sure it lists your pages.
  • Run the free check on bogl.ai again. Results are kept for 24 hours, so if you checked the same site earlier today you'll see the earlier result; check again tomorrow.

Related

A sitemap lists every page; an llms.txt file gives AI tools a short summary. How to add an llms.txt file to your website

Your robots.txt is where the Sitemap: line goes. Check it isn't blocking AI crawlers too. How to fix robots.txt so AI crawlers can read your site

Common Crawl's crawler uses the sitemap listed in your robots.txt. Getting into Common Crawl: How to get your website into Common Crawl (CCBot)

Is your website blocking GPTBot or other AI crawlers? Our free tool reads your robots.txt and shows each one. AI robots.txt checker

Questions

What is an XML sitemap?

A file, usually at /sitemap.xml, that lists the addresses of the pages on your website in a standard format search engines and other crawlers read. Most site builders create and update it for you.

Does a small website need a sitemap?

Not always. Google says you may not need one if your site is small, which it defines as about 500 pages or fewer, and every page is linked from another page on the site. It costs nothing to have one, and most site builders make one anyway.

How do I submit my sitemap to Google?

In Google Search Console, open the Sitemaps report, enter your sitemap's address and submit it. Also add a Sitemap: line to your robots.txt so every crawler can find it. Google calls a submitted sitemap a hint: it doesn't guarantee every page is crawled or indexed.

Do priority and changefreq matter?

Not for Google: it says it ignores the <priority> and <changefreq> values. A sitemap can hold up to 50,000 addresses or 50MB; bigger sites split it into several sitemaps.

What's the difference between llms.txt and a sitemap?

A sitemap lists all your pages for crawlers. An llms.txt file is a short, hand-picked overview of your site written for AI tools. They do different jobs, so it's worth having both.

Free check

Check your whole website

The free check looks at the main things that affect whether AI tools can find and read your website: crawlers, bot protection, readable text, business details, titles and more. You get a score out of 100 and your top 3 issues in about 10 seconds.

Want the fixes ready to paste? The £39 full report checks up to 15 pages and gives you every fix, filled in for your site. See a sample report.