Routing to Vanity URLs

Hi there,

I have been looking for information on this topic but haven't found any relevant answers.

I would like to offer my customers the option to use their own domain, instead of using a subdomain provided by us. However, I am unsure on how to create a rule to do this, as creating a rule per account sounds like it would get out of hand at scale.

I was thinking of using the Header rule and make the application return the correct header, but then realised that if a user just visits the domain, they are not going to send that header.

TLDR: How would I create a rule to allow custom domains (setup with an A record/CNAME) to point to the correct service.

Thanks for your time :smile: