Create and Submit an XML Sitemap in Magento
Creating and submitting an XML sitemap in Magento is essential for helping search engines discover and index your site’s content. Here’s how to create and submit an XML sitemap in Magento:
Steps to Create and Submit an XML Sitemap in Magento
Configuring XML Sitemap Settings
-
Log in to the Magento Admin Panel:
- Open your web browser and navigate to the URL of your Magento admin panel.
- Enter your admin username and password, then click on "Sign in."
-
Navigate to Sitemap Settings:
- In the left sidebar, go to Stores > Configuration.
- In the Catalog section, click on XML Sitemap.
-
Configure Sitemap Settings:
- Generation Settings:
- Enabled: Set to "Yes" to enable the XML sitemap.
- Frequency: Set how often the sitemap should be generated (e.g., Daily, Weekly).
- Time: Set the time of day for the sitemap generation.
- Sitemap File Limits:
- Maximum No of URLs Per File: Set the maximum number of URLs per sitemap file (default is 50,000).
- Maximum File Size: Set the maximum file size for the sitemap (default is 10MB).
- Search Engine Submission Settings:
- Enable Submission to Robots.txt: Set to "Yes" to add the sitemap URL to your
robots.txt
file.
- Enable Submission to Robots.txt: Set to "Yes" to add the sitemap URL to your
- Sitemap Priority:
- Home Page: Set the priority for the home page (default is 1.0).
- Category Page: Set the priority for category pages (default is 0.5).
- Product Page: Set the priority for product pages (default is 0.5).
- CMS Page: Set the priority for CMS pages (default is 0.5).
- Change Frequency:
- Home Page: Set the change frequency for the home page (e.g., Daily, Weekly).
- Category Page: Set the change frequency for category pages (e.g., Daily, Weekly).
- Product Page: Set the change frequency for product pages (e.g., Daily, Weekly).
- CMS Page: Set the change frequency for CMS pages (e.g., Daily, Weekly).
- Generation Settings:
-
Save the Configuration:
- Click Save Config to apply the changes.
Creating an XML Sitemap
-
Navigate to Sitemap Management:
- In the left sidebar, go to Marketing > SEO & Search