Transform Rule Not Working when Changing Hostname

I created a transform rule to change “Hostname” in the HTTP header.
The rule is configured as follows:

It is expected to redirect all traffic from to
However, it seems not to work. I have enabled proxied in the DNS record for

What’s wrong with the configuration?

Hi @cshzxie,

Cloudflare uses the A/AAAA or CNAME record for your domain to decide where to send requests by default.
Cloudflare Workers can intercept requests and, among many other things, send them somewhere else.
If you want to modify the host header without changing the destination then you can use Transform Rules or Cloudflare Workers, but you’ll need an Enterprise plan.

Thanks for your rapid reply.

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