All things Shopify and commerce
Hello, does anyone know how to edit sitemap.xml? I've read a post that we can edit it through FTP (https://www.websitebuilderinsider.com/how-do-i-update-my-sitemap-on-shopify/#:~:text=Updating%20your.... However, I can see posts that we can't access shopify server with FTP. I'm quite confused on which to believe. Thank you
I think, we can't edit sitemap.xml file, it will be default provided by shopify. You can access it via your-domain.myshopify.com/sitemap.xml or your-base-url/sitemap.xml
Just learned the sitemap generated in my store includes spam urls that were added by malicious bot. So thinking I will create my own tidy clean sitemap. But how to create in xml format. Then can I replace mystore.com/sitemap.xml. File?
Same here, any clue what to do with this?
Don’t know. All i do know is that my Google ranking has dropped considerably . Screenshots from our Google console. At least Google stopped indexing bad content. But still affects ranking.
** We came up with a workaround! ** Search engines look for a sitemap.xml in your root folder, as does Google. But with Google, you can enter a sitemap at any URL on your domain.
1. Upload your desired sitemap (or sitemaps) to Files
2. Copy the URL of that file upload
3. Create a URL Redirect with whatever path you want (/sitemap/ ?) and point that to the URL of the uploaded file
4. Submit the redirect to Google as your sitemap
This worked perfectly for us, with bumped rankings for the level of specificity we got with our tailored sitemap.
@JMont
You still cannot replace the existing sitemap but you can make a strong sitemap that may reduce the impact of any bad URLs added. Or take advantage of those URLs to redirect to good pages on your site, though not sure the impact if you can't change the canonical URL for the bad URLs inserted.
Hi @danafleur
Thanks for your suggestion.
We did upload the sitemap to Files, and got a Shopify CDN link.
How do I create a redirect from Shopify Domain to a page of my website, which google would crawl ultimately?
As the file uploaded is hosted on Shopify domain; i am not able to create a URL Diredirect.
I utilized this same solution, and ended up using a reverse proxy (Cloudflare) to setup the redirect.
Be aware that if you go the Cloudflare route, you'll need to request origin-to-origin from their team, or otherwise this won't work.
Thanks for the suggestion. Will explore the solution.
@dev-kriya If you're using Shopify for your storefront, go to Online Store --> Navigation --> View URL redirects (link at top right). From there you can create a redirect.
Thanks, however the "files uploaded" in Shopify are hosted in shopify CDN domain - cdn.shopify.com & have a link of the form - https://cdn.shopify.com/s/files/1/0650/9730/2237/files/{{file_name}}
Shopify does not allows to create URL redirect for this. This only works if both the links are under my domain, right? @danafleur
Another workaround is to use the SEO hidden metafield to hide pages (page, product, collection) from search. It also removes it from the sitemap.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025