Introduction
This guide explains how to create a sitemap in Magento so that you can submit it to search engines for indexing. This will improve the site’s SEO and help it show up in search results.
Requirements
- Magento Admin account with access to the XML Sitemap and Site Map sections.
Skill Level
Basic knowledge of Magento.
Instructions
Time needed: 5 minutes.
- Log into Magento Admin.
- Go to the Configuration page.
In the main menu click Stores > Settings > Configuration.
- Go to the XML Sitemap page.
Click Catalog > XML Sitemap.
- Update the XML Sitemap settings.
Click Generation Settings. For the Enabled field, untick the Use system value tick box and select Yes in the drop down. For the Error Email Recipient field, enter the email address you would like error emails to be sent to.
Click Search Engine Submissions Settings. For the Enable Submissions to Robots.txt field, untick the Use system value tick box and select Yes in the drop down.
Review all the other settings and, if appropriate for your site, edit them.
Click Save Config. - Go to the Site Map page.
In the main menu click Marketing > SEO & Search > Site Map
- Click Add Sitemap.
- Fill in the Sitemap details.
In the Filename field, enter the name of the sitemap. This is normally sitemap.xml.
In the Path field, enter the path to the sitemap. Depending on your setup, this could be a forward slash “/” (which would result in the path being yourdomain.com/sitemap.xml).
Click Save & Generate. - Make a note of the Sitemap link.
Make a note of the link for the sitemap in the Link for Google column.
More Info
Guide to Using a Site Map: https://docs.magento.com/user-guide/marketing/sitemap-xml.html
Next Steps
Now that you’ve created a sitemap in Magento you can submit it in Google Search Console. You may also want to make sure the robots.txt is set correctly.