How to create a sitemap

Dan Counsell · Founder of Realmac SoftwareUpdated

We’ve made RapidWeaver, a website builder for Mac, since 2004. Each guide works with any tool, then shows how in RapidWeaver Elements.

Search engines find pages by following links. A sitemap gives them a list as well, so they don’t miss pages that few other pages link to.

What is a sitemap?

An XML sitemap is a plain text file that lists your page addresses, often with the date each one last changed. It lives at the root of your site, such as https://example.com/sitemap.xml.

A small one looks like this:

<?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-11-12</lastmod>
  </url>
  <url>
    <loc>https://example.com/about/</loc>
  </url>
</urlset>

There’s also the HTML sitemap, a normal page listing your pages for visitors. It’s optional. The XML one is the one search engines want.

Do you need a sitemap?

Google says small, well-linked sites can do without one. But a sitemap costs nothing and helps a new site get found faster, so it’s worth having.

What to put in a sitemap

  • Every page you want in search results.
  • Only the final address of each page, not old addresses that redirect.
  • Not thank-you pages, test pages or private pages.

How to create a sitemap

  1. Check whether you already have one. Visit yoursite.com/sitemap.xml. Most builders, Elements included, make one automatically.
  2. If not, use a generator. Free online sitemap generators crawl your site and give you the file to download.
  3. Upload it to the root folder of your site.
  4. Add it to robots.txt with a line like Sitemap: https://example.com/sitemap.xml.
  5. Submit it to Google. In Google Search Console, open Sitemaps, enter the address and click Submit. Bing Webmaster Tools has the same option.

Sitemaps in RapidWeaver Elements

RapidWeaver Elements writes sitemap.xml for you each time you publish, in the root of your site. New pages are included automatically.

To leave a page out, select it and untick Include in sitemap in the Page Inspector. Elements leaves out folders and files that aren’t pages, such as images, CSS and PDFs.

The page settings in the RapidWeaver Elements Page Inspector, with Browser title, Title, Menu Description, URL, Filename and the Include in sitemap checkbox ticked

Questions about sitemaps

How often should I update my sitemap?

Whenever you add or remove pages. If your builder makes it, that happens on every publish.

Why does Search Console say “couldn’t fetch” my sitemap?

Check the address opens in your browser, that it starts with the same https:// and www choice as your site, and that robots.txt doesn’t block it. New sitemaps can also show this for a day before Google reads them.

Does a sitemap help my ranking?

Not directly. It helps Google find and recrawl your pages. Ranking comes from what’s on them. See how to get your website on Google.

Get RapidWeaver Elements for Mac

Design, build and publish your site without code, then host it anywhere. Try it free on your own project.

Download

Confirm your email and we'll send your code. Unsubscribe any time. Privacy policy