{"id":94,"date":"2024-09-02T10:19:00","date_gmt":"2024-09-02T10:19:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2024\/09\/02\/create-magento-2-xml-sitemap\/"},"modified":"2025-01-02T09:43:22","modified_gmt":"2025-01-02T09:43:22","slug":"create-magento-2-xml-sitemap","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/create-magento-2-xml-sitemap\/","title":{"rendered":"How to Create Magento 2 XML Sitemap"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Magento 2 XML sitemap comes into play to make your Magento 2 store visible on search engines.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what is it, and how can it be configured without getting lost in the woods?&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This blog will guide you in understanding each part of the Magento 2 XML Sitemap and answer all your questions.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Magento 2 XML Sitemap?&nbsp;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A Magento XML sitemap is a file that lists all the important links on the website including product pages, categories, and CMS pages.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/09\/sitemap-in-the-footer.png\" alt=\"SItemap in Footer\" class=\"wp-image-55685\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the file is submitted to Google Search Console, Google\u2019s search bots will easily find and index pages that help improve the ranking in search results.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of Magento sitemap.XML is like a detailed map that suggests the search engines about each page of your website and highlights the most important pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Create Sitemap in Magento 2?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A sitemap in Magento 2 is one of the important tasks that helps to elevate the website\u2019s <a href=\"https:\/\/meetanshi.com\/blog\/magento-2-seo-guide\/\">SEO<\/a> performance.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A nicely configured sitemap ensures that search engines can crawl and index your website, however, it makes more sense if this process is automated so it can be managed swiftly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the steps to create a sitemap manually in Magento 2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Frequency and Priority Values Configuration&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Login to Admin Panel<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For logging into admin panel and follow the below steps given:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on stores &gt; choose the configuration<\/li>\n\n\n\n<li>Select \u201cXML Sitemap\u201d under the catalog option<\/li>\n\n\n\n<li>Choose the \u201cCategories\u201d option and select \u201cfrequency\u201d from the drop-down menu and set priority from 0.0 to 1.0<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>From product options<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure the frequency and priority values as above.&nbsp;<\/li>\n\n\n\n<li>Choose \u201call\u201d from the \u201cAdd Images to Sitemap\u201d option to attach an image from the drop-down menu<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>From CMS Pages Option<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure the frequency and set priority values from the CMS Pages option.<\/li>\n\n\n\n<li>Click on the \u201csave configuration\u201d option<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/09\/category-options-product-options-cms-page-options.png\" alt=\"Category options product options cms page options\" class=\"wp-image-55679\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Configure the Generation Setting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configure the generation settings under the \u201cgeneration settings\u201d section. Go as per the mentioned steps<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enabled<\/strong>: YES<\/li>\n\n\n\n<li><strong>Frequency<\/strong>: You can set \u201cdaily\u201d, \u201cweekly\u201d, or \u201cmonthly\u201d from the drop-down menu<\/li>\n\n\n\n<li><strong>Error Email Recipient<\/strong>: Add the email address that is supposed to receive support inquiries or help. For example <a href=\"mailto:support@meetanshi.com\">support@meetanshi.com<\/a><\/li>\n\n\n\n<li><strong>Error Email Template:<\/strong> The drop-down menu gives the option to select the template, and add the template for error email.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/09\/generation-settings.png\" alt=\"Generation Settings\" class=\"wp-image-55681\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Configure the Sitemap File Limits&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure the below fields under the \u201cSitemap File Limits\u201d.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Maximum Number of URLs Per File:<\/strong> Enter the limit of the number of URLs per file&nbsp;<\/li>\n\n\n\n<li><strong>Maximum File Size<\/strong>: You can enter the limit of the files in bytes<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. Complete the Search Engine Submission Settings<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable Submission To Robots.txt: <\/strong>Set \u201cYES\u201d to provide instructions to search engines that crawl your site by using a robot.txt file. If your site is missing a robot.txt file, create one now and configure this setting.&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/09\/complete-the-search-engine-submission-settings.png\" alt=\"Complete the search engine submission settings\" class=\"wp-image-55680\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After this, click save, and your Magento 2 XML Sitemap is created, you can easily retrieve it. Verify it using the search engine using Google Search Console.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><div class=\"meetanshi-cta\">\r\n<div class=\"cta-content-wrapper\">\r\n<span>Magento 2 Google Sitemap<\/span>\r\n<p>List out the important pages for the search engine to discover, index, and crawl more efficiently.<\/p>\r\n<a href=\"https:\/\/meetanshi.com\/magento-2-google-sitemap.html\" target=\"_blank\" class=\"btn-primary\">Start Listing <\/a>\r\n<\/div>\r\n<div class=\"cta-image-new\">\r\n<img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/11\/magento-2-google-sitemap.png\" alt=\"Magento 2 Google Sitemap\">\r\n<\/div>\r\n<\/div><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automatically Generate Sitemap in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A Magento 2 Sitemap extension is the easiest way to generate a sitemap in Magento 2 to optimize for search engines.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One way to use Sitemap is the Magento 2 XML Sitemap extension; it helps to boost your website visibility, with minimum effort needed from your end.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/meetanshi.com\/magento-2-google-sitemap.html\">Meetanshi Magento 2 Google Sitemap <\/a>extension is one such go-to extension for your store.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2024\/09\/Magento-2-Google-Sitemap-Extension-By-Meetanshi.png\" alt=\"Magento 2 Google Sitemap Extension By Meetanshi\" class=\"wp-image-55683\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The extension automates sitemap creation effortlessly, helps generate XML sitemaps for your store, and comes with advanced filtering options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Having a thorough sitemap is the key to maintaining a successful website. So, work with the above steps to improve your SEO and let Google crawl your pages faster<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So start creating one for your store now.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 XML sitemap comes into play to make your Magento 2 store visible on search engines.&nbsp; But what is it, and how can it&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":1,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":3987,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions\/3987"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}