Rewrite subdomain to live on another main domain's path

Hello,
I have frontend service that runs on: app.example.com and a render node service that runs on api.example.com

Because of firewall policy of some of our clients, we need to have both services running on the same domain.

So the API service has to move from api.example.comapp.example.com/api

Does anyone know of a way to do it via cloudflare? I was thinking of using workers but not sure if it’s the most elegant way.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.