Upload Custom Sitemap XML

Highlighted
New Member
3 0 0

Hi

I want to upload custom sitemap.xml to root directory which is generated by us. I cant find any solution and the articles.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
368 0 33

Hello Puneeth, Ben here - your Shopify Guru! 

 The sitemap is genereated automatically by Shopify. You cannot upload your own sitemap. If you need to modify what search engines index I would suggest you review our documentation around the robots.txt. You can use some liquid and meta tags to remove pages from being indexed. Our documentation can be found here:

https://docs.shopify.com/support/your-website/navigation/robots-txt

I hope this helps! Feel free to reach out if you have any further questions :)

Cheers,
Ben C - Shopify Guru
Support@Shopify.com

0 Likes
Highlighted
Excursionist
15 0 5

I don't know if this is still relevant but I found a solution.
You'll have to upload your custom sitemap to your "files" tab in your store settings and copy the file's URL.
Then go to your navigation -> URL redirects and add a new redirect that redirects from your domain to the .xml file previously uploaded

will look something like this: mydomain.com/sitemap.xml  redirects to https://cdn.shopify.com/s/files/*************/files/sitemap.xml?*****

Then submit your newly created URL to Google console, it seems that it has no problems with redirects

Hope I helped someone!

3 Likes
Highlighted
New Member
2 0 3

This is great advice. It worked like a charm for me.

 

Thanks, UBoi.

1 Like
Highlighted
New Member
2 0 0

Is it still possible?


@silentpacific wrote:

This is great advice. It worked like a charm for me.

 

Thanks, UBoi.


 

0 Likes
Highlighted
Excursionist
15 0 5

I have used this method to upload my own custom sitemap and Google never had a single problem with it since then, it works perfectly to this day

0 Likes
Highlighted

@Puneeth_Shridha @nehilkakadia -- @UBoi is correct.

 

If you want more info, check out my reply on this post where I detail the SEO best practices and provide step-by-step instructions...

https://community.shopify.com/c/Shopify-Discussion/Migration-to-Shopify-and-Google-Sitemaps/m-p/2868...

0 Likes
New Member
3 0 0

This method doesn't appear to be working for me. I have set the redirect but when I click on my sitemap link on my website, it isn't redirecting. It is staying on the one generated by Shopify. Not sure what I am doing wrong. :(

0 Likes
Highlighted

@Biggaz1979 did you follow my step-by-step instructions here? If so, and you're still having issues, please share your website URL I'd be happy to take a quick look. Better yet, if you could provide some screenshots or the XML file that would be helpful. 

0 Likes
Highlighted
New Member
3 0 0
Hi Kevin,

@KevinW I used a generator to create the XML file, uploaded it to my server files, then created the redirect as mentioned. But when I then click on my site map link from my website it doesn't redirect. My url is https://manicmusclelabs.co.uk I'm on my phone at present so unable to send a screenshot of the new XML file.

Regards
Gav
0 Likes