{"id":24409,"date":"2020-09-15T18:09:39","date_gmt":"2020-09-15T18:09:39","guid":{"rendered":"https:\/\/www.globalizationpartners.com\/?p=24409"},"modified":"2020-11-11T08:55:52","modified_gmt":"2020-11-11T08:55:52","slug":"sitecore-sitemap","status":"publish","type":"post","link":"https:\/\/www.globalizationpartners.com\/2020\/09\/15\/sitecore-sitemap\/","title":{"rendered":"Building a Multilingual Sitemap in Sitecore"},"content":{"rendered":"<p>Search engine optimization (SEO) is a key aspect to keep in mind when building a multilingual site. One of the basic SEO practices is building a sitemap. In this blog entry, we will cover the main aspects to consider when building a multilingual Sitecore sitemap. We will cover some generic aspects that apply to any multilingual website and then we will speak about some tips specifically related to <a href=\"https:\/\/www.globalizationpartners.com\/2019\/10\/10\/best-practices-for-sitecore-internationalization-part-3\/\">Sitecore multilingual websites<\/a>.<\/p>\n<h2>Sitemaps for Multilingual Websites<\/h2>\n<p>A sitemap helps search engine crawlers navigate your website and improve SEO. Typically, it\u2019s an XML file called sitemap.xml, which is stored in the root folder of your domain.<\/p>\n<p>For multilingual websites, you can use the sitemap to tell the search engine all the languages and regions for each URL. To do this, the sitemap should include a <strong>&lt;url&gt;<\/strong> element and, inside of it, a <strong>&lt;loc&gt;<\/strong> element specifying the source (typically English) URL and <strong>&lt;xhtml:link&gt;<\/strong> entries for every language and locale of the page.<\/p>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24410 size-full\" title=\"multilingual sitecore sitemap\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/08\/sitecore-sitemap-1.png\" alt=\"multilingual sitecore sitemap\" width=\"723\" height=\"561\" srcset=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/08\/sitecore-sitemap-1.png 723w, https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/08\/sitecore-sitemap-1-300x233.png 300w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>In the example above, I specified the localized pages for Arabic (ar), Spanish (es) and Chinese (zh). Note that I only specified languages, but you can also identify a region, for example Spanish Argentina would be es-AR.<\/p>\n<p>For more information on this topic, you can refer to <a href=\"https:\/\/support.google.com\/webmasters\/answer\/189077?hl=en\">this entry<\/a> in the Google Support pages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-27855 size-full\" title=\"multilingual sitecore sitemap\" src=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/09\/202009_Building-a-Sitemap-for-a-multilingual-site-in-Sitecore-03.jpg\" alt=\"multilingual sitecore sitemap\" width=\"790\" height=\"526\" srcset=\"https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/09\/202009_Building-a-Sitemap-for-a-multilingual-site-in-Sitecore-03.jpg 790w, https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/09\/202009_Building-a-Sitemap-for-a-multilingual-site-in-Sitecore-03-300x200.jpg 300w, https:\/\/www.globalizationpartners.com\/wp-content\/uploads\/2020\/09\/202009_Building-a-Sitemap-for-a-multilingual-site-in-Sitecore-03-768x511.jpg 768w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/p>\n<h2>Building a Multilingual Sitecore Sitemap<\/h2>\n<p>Now, let\u2019s talk about how to create a multilingual Sitecore sitemap.<\/p>\n<p>If you are using Sitecore Experience Accelerator (SXA), which is present in the latest Sitecore versions (starting from 9.3), then the sitemap will be generated automatically for each site and will be stored in cache. For more details about this, you can check the following <a href=\"https:\/\/doc.sitecore.com\/developers\/sxa\/17\/sitecore-experience-accelerator\/en\/configure-a-sitemap.html\">link<\/a>.<\/p>\n<p>For older versions (prior to 9.3), you can build the sitemap.xml manually or you can use a module. Building a sitemap.xml manually will take more effort, but you can customize it and improve it based on your needs. If you decide to go for a module, then you can consider the following ones:<\/p>\n<ul>\n<li><a href=\"https:\/\/marketplace.sitecore.net\/en\/Modules\/Ultimate_Sitemap_XML.aspx\">Ultimate Sitemap XML<\/a><\/li>\n<li><a href=\"https:\/\/marketplace.sitecore.net\/Modules\/M\/Multilingual_XML_Sitemap.aspx\">Multilingual XML Sitemap<\/a>: This is an extension of Ultimate Sitemap XML and includes multilingual support.<\/li>\n<li><a href=\"https:\/\/marketplace.sitecore.net\/en\/Modules\/S\/Sitecore_Advanced_SiteMap_Module.aspx\">Sitecore Advanced Sitemap Module<\/a>: This supports multilingual sites.<\/li>\n<li><a href=\"https:\/\/marketplace.sitecore.net\/en\/Modules\/S\/Sitemap_Generation.aspx\">Sitemap Generation<\/a><\/li>\n<\/ul>\n<p>Another option would be to build your own custom module to generate your sitemap.xml file.<\/p>\n<h3>Summary<\/h3>\n<p>When creating a multilingual Sitecore sitemap, going for a manual or an automated approach to generate the sitemap.xml will depend on the current size of your site and its expected growth. If your website has a number of pages that can be managed by creating a sitemap.xml manually, then I would recommend you go for this option. Otherwise, I would recommend you test the available modules or consider building a custom one if none of the available options work for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Search engine optimization (SEO) is a key aspect to keep in mind when building a multilingual site. One of the basic SEO practices is building a sitemap. In this blog entry, we will cover the main aspects to consider when building a multilingual Sitecore sitemap. We will cover some generic aspects that apply to any [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":28769,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[56,557,64],"_links":{"self":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/24409"}],"collection":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/comments?post=24409"}],"version-history":[{"count":11,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/24409\/revisions"}],"predecessor-version":[{"id":28719,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/posts\/24409\/revisions\/28719"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/media\/28769"}],"wp:attachment":[{"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/media?parent=24409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/categories?post=24409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globalizationpartners.com\/wp-json\/wp\/v2\/tags?post=24409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}