Is it possible to create a page rule to forward non-existent subdomain to another page?
Particularly I want to do this:
Forward https://api.mydomain.com/* to https://mydomain.com/api/$1
Note that I haven’t set up api subdomain on my back server, but https://mydomain.com/api/ is working
Thanks for the help. You know I’ve done this for existing sites, for example redirected https://otherdomain.com to https://app.otherdomain.com
But somehow unable to do when subdomain I want to forward is not set up. I add a DNS record for it, of course, but no success
Thanks, it worked, though not the way I need. In fact I was doing the same thing, just had to wait before DNS propogates.
The problem is it doesn’t forward http headers. I guess I have to setup subdomain in nginx