The sitemap.xml file structure
SXA auto-generates sitemaps that follow globally approved guidelines. To read more about sitemaps in general, see this Google docs article about sitemaps, and this Google docs article about building and submitting a sitemap.
Sitemap entries have the following elements: loc, lastmod, changefreq, and priority.
Alternate links for different languages
When a sitemap has alternate links for pages in different languages, the links are formatted in the following way:
To follow the global best practices, SXA follows these general principles:
-
If there are 2 or more languages, there is a separate entry for each language defined in
loc. -
If there are 2 or more languages defined for a page, x-default is set for one hreflang. For example:
-
If there is only a single language, SXA lists the language with an
href, but does not add the language code underloc.
Example of site structure
The following example uses both English and Danish sites: