Create a sitemap in Webflow

Create and submit a sitemap for your Webflow site.

We’re transitioning to a new UI, and are in the process of updating our Webflow University content.

Similar to a table of contents, a sitemap is a page that contains links to various pages of your site which search engines and site visitors use to access your site’s content. Search engine web crawlers follow the paths provided in the sitemap to index site pages and make them available in search engine results. 

When you set up custom domain hosting with Webflow, you can automatically generate an XML sitemap or add your own. 

To learn more, check out SEO and Webflow: the essential guide

In this lesson, you’ll learn: 

  1. How to auto-generate a sitemap
  2. How to add a custom sitemap
  3. How to customize the root domain in your sitemap.xml address
  4. How to submit your sitemap to Google

How to auto-generate a sitemap

Webflow’s auto-generated sitemap feature automatically generates a sitemap.xml for your site and updates it each time you publish your site. 

For sites with Localization enabled, the auto-generated sitemap includes hreflang tags for all static and dynamic pages on your site to help search engines understand the available language and region variants of your site content. Learn more about sitemap hreflang tags.

To enable the auto-generate sitemap feature: 

  1. Visit Site settings > SEO tab > Sitemap section
  2. Toggle Auto-generate sitemap to “Yes” to enable the auto-generated sitemap 
  3. Click Save changes
  4. Publish your site 
Important: Make sure to set a default domain, as the sitemap will reflect the domain you’ve set as the default. Otherwise, Google’s crawlers will hit a 301 Redirect status when they attempt to crawl the URLs in your sitemap, which indicates to them that the original pages do not exist.  
Note: It isn’t possible to delete the /sitemap.xml page once you’ve created your sitemap and published your site. 

How to add a custom sitemap

If you prefer, you can write your own custom sitemap.xml and add it to your Webflow site. 

Note that if you use a custom sitemap for sites with Localization enabled, you’ll need to manually add hreflang tags for each page, or consider custom code alternatives. Learn more about sitemap hreflang tags.

To add your own custom sitemap to your site: 

  1. Visit Site settings > SEO tab > Sitemap section
  2. Toggle Auto-generate sitemap to “No” to disable the auto-generated sitemap 
  3. Paste your custom sitemap in the Custom sitemap.xml field
  4. Click Save changes
  5. Publish your site
Note: It isn’t possible to delete the /sitemap.xml page once you’ve created your sitemap and published your site. 

How to customize the root domain in your sitemap.xml address 

Note: This feature is only available to Webflow Enterprise customers. If you or a client are interested in learning more, please contact our Enterprise sales team

If you use a reverse proxy to connect multiple Webflow sites to a single domain, you may have run into SEO challenges with the automatically generated sitemap.xml address Webflow creates within your robots.txt file. You can remove the default sitemap.xml address and input your own to ensure search engines understand your sites are part of the same domain. 

To remove the default sitemap.xml address and add your own: 

  1. Go to Site settings > SEO tab > Indexing section
  2. Toggle Remove sitemap.xml from robots.txt to “Yes” to remove the auto-generated sitemap from your robots.txt file
  3. Enter the sitemap for your root domain in the robots.txt field
  4. Click Save changes
  5. Publish your site

How to submit your sitemap to Google

Once you’ve generated your sitemap, you’ll need to tell Google about your sitemap using one of the following methods: 

Good to know: Google may automatically find and index your website through a link on another site, but verifying ownership of your site, submitting a sitemap, and manually requesting that Google index your site can typically speed up the process.

Add your sitemap to your site’s robots.txt file

If you’ve disabled Webflow’s auto-generated sitemap and are using a custom sitemap, you can tell Google about your sitemap from your Webflow dashboard. 

To add your sitemap to your site’s robots.txt file: 

  1. Go to Site settings > SEO tab > Indexing section
  2. Enter “Sitemap: https://{your-site.com}/sitemap.xml” in the robots.txt field, replacing the {your-site.com} with your site’s default domain
Important: Don’t enter your sitemap link in the robots.txt field if you’re using Webflow’s auto-generated sitemap. Otherwise, your robots.txt file will contain 2 sitemaps for search engines to crawl.

Submit your sitemap to Google Search Console

Whether you’ve created a custom sitemap or are using Webflow’s auto-generated sitemap, you can submit your sitemap through Google Search Console

To submit your sitemap: 

  1. Open Google Search Console
  2. Choose the property (website) you want to submit the sitemap for
  3. Type “sitemap.xml” into the input field 
  4. Click Submit


Table of contents

Continue learning

Hmm…we couldn’t find any results for “search query”. Try a different search term or check out our community forum.

Search the forumReset the filter
Load more

Filter

Reset
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Topics
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Back to top