First time working with Cloudflare workers, and I’ve checked around for as much info as I can find, but I have a domain name I just added to Cloudflare, which was originally using an Alias domain, which was configured to A and AAAA records (domain name still seems to be working, so I’m not worried) pointing to teachable.
I wanted to setup some workers that can redirect users from India to a special page, and I’ve checked by using a VPN and it seems to be working, when I use my workers domain, but when I add my domain as a route configured as:
It seems it’s not working BUT my original workers domain seems to be just fine. I do have cloudlfare cloud enabled for my domain, also, which I saw some people say this could be the reason, but mine is turned on.
What’s the difference between your original domain and this new domain? Are they two different domains?
What I do see is that Teachable uses Cloudflare, so it’s quite likely that your Cloudflare settings cannot be applied to Teachable hosting that goes through their own Cloudflare account.
The original domain is just the worker domain. For some reason we have to have a worker domain, which is fine. And I can test that it’s working fine there, BUT not on the domain i setup in routing.
Hmm, so you think that cause i’m using cloudflare and so are they that this could conflict?
So your path is *domain.com/ correct? If so, that will only cover the index page. I’m assuming you will probably want paths covered too so you will want *domain.com/*
Be aware the route will cover all subdomains and your apex. You may want to only cover a certain one like teachable.domain.com/* which would cover only the teachable subdomain.