Configure a sitemap
Sitemaps help search engine crawlers navigate your site and improve search engine optimization (SEO). By default, the sitemap is generated for the whole site and stored in file. An XML sitemap is created specifically for search engines to show details of the available pages in a website, their relative importance, and the frequency of content updates.
In the sitemap, each page is represented by a URL
element.
By default, the sitemap uses the Host Name defined in the Basic section in the site host item of your site (<site collection>/<site>/Settings/Site Grouping/Site)
. If both the Host Name and the TargetHostName fields are empty, the sitemap returns a 404 error.
To ensure that the sitemap link is generated properly, you must configure the target hostname and scheme on the site host item.
To configure the sitemap for your site:
-
In the Content Editor, navigate to <site>/Settings/Sitemap.
-
Fill in the following fields:
Tab |
Field |
Description |
---|---|---|
Alternate links |
Generate alternate links |
Select to add Example: RequestResponse
|
Include x-default |
Select to add the Example: RequestResponse
| |
hreflang |
Specify language and region options for the
| |
Urlset attributes |
lastmod |
Select to render the |
changefreq |
Select to render the | |
priority |
Select to render the | |
URL options |
Link provider name |
Specify a custom link provider. It is added to the |
Content crawling |
Crawler |
Specify the name of the item crawler that fetches items from your site. The default value is itemCrawler. You can define multiple item crawlers in the Example: RequestResponse
|
Cache |
Refresh threshold |
Specify in minutes the minimum time slot between rebuild operations. The sitemap is rebuilt on publish. For example, if the refresh threshold is greater than 0, then the next rebuild operation does not occur earlier than the time of the most recent rebuild operation plus the time you have specified. The purpose of this field is to prevent excessive sitemap rebuild jobs when there are many publishing operations. |
Cache Type |
Specify how the sitemap is stored:
| |
Cache Type |
Cache Expiration - Specify in minutes the lifetime of the sitemap in the | |
Sitemap index |
Maximum number of pages per sitemap |
Specify the number of pages to be included in a sitemap. If the number of pages on the site exceeds the limit, then the Note If you leave the field undefined, all |
Media items |
Generate sitemap media items |
Select to generate media items where the sitemaps are stored when the site is published. Storing sitemaps in media items is required to deliver the sitemap files to the rendering host through the Experience Edge service. Enabled by default. Note This field is only applicable with headless sites. |