Royyyyy
CDCloudflare Developers
•Created by Royyyyy on 10/31/2023 in #workers-help
How to redirect requests based on geolocation on a Shopify site
Hi, I'm trying to run a redirect worker on my site that serve a Shopify site. It has A and CNAME record connected to Shopify. The worker supposed to run on the root url eg.
domain.com
, and redirect the request to another url (eg. domain.hk
) based on user's geolocation. Will not redirect if there's no matching country.
To get a worker running, I stumbled upon the step to add Custom Domain which it mentioned the domain has been taken. My questions are, am I doing it correctly? is my requirement technically possible?
There's another challenge of, not being able to set the DNS record to Shopify as Proxied.8 replies