How to upload a custom sitemap.xml in Shopify?

by percy_bauch , in category: SEO , a year ago

How to upload a custom sitemap.xml in Shopify?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by clarabelle , 10 months ago


To upload a custom sitemap.xml file in Shopify, follow these steps:

  1. Login to your Shopify admin panel.
  2. From your Shopify admin, go to Online Store > Preferences.
  3. Scroll down to the Search engine listing preview section.
  4. Under the Sitemap section, click on the 'See the XML sitemap' link. This will open your current sitemap in a new tab.
  5. Copy the URL of the sitemap page that opens up.
  6. Open a text editor (like Notepad or Sublime Text) and create a new XML file for your custom sitemap. Make sure the file follows the correct XML formatting.
  7. Add your custom URLs to the XML file, using the tag structure . Replace the ... with the URL of each page.
  8. Save the XML file with the name "sitemap.xml".
  9. Once saved, open your preferred FTP (File Transfer Protocol) program or use the file manager in your hosting control panel.
  10. Upload the custom sitemap.xml file to your Shopify root directory, typically named "public_html" or "www".
  11. After uploading, return to the Shopify admin panel and go back to Online Store > Preferences > Sitemap.
  12. Click on the 'Submit sitemap' button.
  13. You will see a pop-up window where you can enter the URL of your custom sitemap. Paste the URL you copied in step 5.
  14. Click the 'Submit' button to submit your custom sitemap to Shopify.

Note: Shopify also generates an automatic sitemap.xml file that includes all your published products, collections, and pages. While you can upload a custom sitemap file, it won't replace the default sitemap generated by Shopify.