Override redirects caused by Translate & Adapt app, sitemap not being served correctly

Topic summary

A user is experiencing issues accessing their sitemap at /sitemap.xml due to automatic redirects to /en-ca/sitemap.xml, which returns a 404 error. The store uses multiple languages for localization.

Attempted Solutions:

  • Creating URL redirects (unsuccessful due to infinite loop concerns)
  • Accessing sitemap via CDN (resulted in 404s)
  • Investigating Translate & Adapt app settings

Root Cause Identified:
The issue stems from Shopify’s native handling of domains with multiple assigned languages, not the Translate & Adapt app itself.

Technical Details:
The redirect chain shows: /sitemap.xml → 301 → /sitemap.xml → 302 → /en-ca/sitemap.xml → 404

Status: The discussion remains open with no concrete solution implemented. The user initially considered workarounds like CloudFlare proxy or custom VPS setup but deemed them impractical.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

I’m using the Translate & Adapt app to localize and translate my store as I am serving a multilingual community.

However, my sitemap is inaccessible because whenever I try to access /sitemap.xml, I’m getting redirected to /en-ca/sitemap.xml, as illustrated by the below script output. And then I get a 404 because, obviously, the sitemap is not being served at /en-ca/sitemap.xml .

I’m wondering if:

  1. The Translate & Adapt app has any settings that I’m not aware of where I can control the redirects?

  2. There is a way to override this behavior using the Shopify URL Redirect settings? For now, AFAIK I cannot do that because I did try to create a redirect from /sitemap.xml → sitemap.xml but as expected, this is not supported. I also don’t think I can create a redirect from /en-ca/sitemap.xml → /sitemap.xml because this will cause an endless redirection loop.

  3. Not ideal but alternatively, is there a Shopify setting that would allow me to serve the sitemap at /en-ca/sitemap.xml?

Those are the solutions that I can think of but I canoot figure out how to implement them.

The only other solution I can think of is using a proxy like CloudFlare or roll one out myself on a VPS but that just seems ridiculous.

For reference, here’s a curl output that illustrates the behavior

curl -ILs https://${myDomain}/sitemap.xml | grep -i '^HTTP\|^Location'

HTTP/2 301 
location: https://www.${myDomain}/sitemap.xml
HTTP/2 302 
location: https://www.${myDomain}/en-ca/sitemap.xml
HTTP/2 404

Thank you for any help!

Hi! Thanks for your reply.

The problem with adding a URL redirect from /en-ca/sitemap.xml to /sitemap.xml is that it’s going to cause an infinite redirect loop so this solution does not work.

I did not manage to get my sitemap via the CDN, I did replace my store ID in the URL but I only get 404s.

I will attempt to contact the Translate & Adapt support then.

It turns out that the problem is actually not caused by the Translate & Adapt app but it’s really a consequence of Shopify’s handling of domains that have multiple languages assigned to them.