URL redirect and rewriting

What is the name of the domain?

webapp1.example.com

What is the issue you’re encountering

Currently, some web applications have their own URLs, and would like to leverage Cloudflare’s URL rewrite function for better user experience. One example will be: https://app1.webapp1.asia. Users will just navigate to https://webapp1.example.com and the URL in the browser’s address bar will remain as https://webapp1.example.com

Re-writing the host header is only permitted on an Enterprise plan.

You could use a Worker…

Those would require the domains to be on Cloudflare, so if you are doing this for external customers it is likely Cloudlfare for SaaS is better for your use case…

Hi sjr,

Thanks for the reply.

I’m on enterprise plan and do I still have to use a Worker?

You can change the host header with Transform or Origin Rules if the input hostname is in an Enterprise zone, so modifying the host header of requests to your own domains.

If this is for your customers to use your web app, Cloudflare for SaaS is the way. It’s probably a better option even for your own use.

Or (for a paid plan) you can use a Snippet instead of a Worker if you want to avoid paying for Workers requests if it fits within the limits.

Hi sjr,

noted and thanks for pointing to use Transform or Origin Rules.

Actually, I’m the “customer” of the web app. However, the vendor’s app does not support custom domain. Hence was seeking assistance here.