Sitemap files

A sitemap.xml file provides search engines with more details about the pages on your site and helps them index it properly.

Thomas Malbaux avatar
Written by Thomas Malbaux
Updated over a week ago

Do Sharetribe marketplaces have a sitemap file?

Yes, in fact, Sharetribe generates a set of sitemap files for your marketplace. This feature is available for all plans. However, the file names are very specific.

The sitemap files that are created are in a subfolder of your main domain's URL, and they all follow the pattern of https://example.com/sitemap-file-name.xml. Where:

  • your marketplace's domain would replace the example.com part

  • the specific sitemap file's name would replace sitemap-file-name.

The specific sitemaps that are generated for your marketplace are:

  • Index: https://www.example.com/sitemap-index.xml

  • Default: https://www.example.com/sitemap-default.xml

  • Recent listings: https://www.example.com/sitemap-recent-listings.xml

  • Recent Pages: https://www.example.com/sitemap-recent-pages.xml

Bear in mind that if you are using a subdomain or a Sharetribe-hosted domain, your sitemap files would actually be a subfolder of that domain:

https://example.mysharetribe.com/sitemap-index.xml or

https://subdomain.example.com/sitemap-index.xml

What do the sitemap files contain?

sitemap-index.xml

The sitemap-index.xml file contains the index for the other three sitemaps. It exposes to the three separate sub-sitemaps. Having this index separate from the other three sitemaps reduces the size of each individual sitemap. You can think of this file as the "main" sitemap.

The sitemap file format is valid and works perfectly with all search engines (such as Google) bots.

sitemap-default.xml

The sitemap-default.xml file includes your public built-in pages, which you can think of as your main marketplace pages. If you are using the no-code solution with Sharetribe, this file contains the URLs for your Landing page, the terms of service, the privacy policy, the login and signup pages, and the search page. If you customize your marketplace with code, you can add more public pages and, therefore, more paths to this sitemap file.

sitemap-recent-listings.xml

The sitemap-recent-listings.xml file exposes and references the URLs for your marketplace's most recently published listings. This file can contain up to the 10,000 most recent listings.

sitemap-recent-pages.xml

The sitemap-recent-pages.xml file contains the URLs for your marketplace's static content Pages, also known as "Content pages." It defines all the content pages created with the Pages feature that are not included in the sitemap-default.xml file.

The default logic filters out the pages with custom paths: landing page, terms of service, and privacy policy are examples of them. The About page, for example, is referenced in this file.

What do I need to do to enable it?

You don't have to do anything: search engine robots should find it automatically, as this file is already referenced in your automatic robots.txt file. However, you could go the extra mile and declare it in Google Search Console. You can learn more in this article.

Note: Support for sitemap was released in template version 3.3.0 in October 2023. If you have a custom-coded marketplace, you may need to update your template version to get sitemap support for your custom marketplace.

Did this answer your question?