My app is a hotel system that creates a website for customers who use SaaS. It creates a default URL that comes with the customer ID. I added a field to the web and the database so that they can save their domain. Now I need to create a way that when accessing the customer’s domain it is redirected to their internal URL in the system. For example: www.domain.com goes to app.mysaas.com/propriedade/id_client
Could someone give me some advice on how to do this?
I’m using Cloudflare because I read that it can be done using rules and I also found something that says I need to do something in the workflow but I have no idea where to start.