Can I use Page Rules for configuring Proxy?

My use-case is,

I have a CloudFlare Pages powered static React website hosted on root domain (https://abc.com). But, I would like https://abc.com/blog to proxy to a different external server (to load a WordPress blog, running on a different domain).

Can this be configured using Page Rules or any other CF feature?

Thanks in advance!

You can use Pages Rules to redirect or use Transfom Rules / Workers to “rewrite” the URL and serve the content from another place but keeping the same URL

1 Like

Can you please explain on how a transform rule can be configured by preserving the URL like,

https://abc.com/blog should serve pages underlying from another domain like https://xyz.com

There are two ways I know of to do this.

The Resolve Override page rule is the easiest, but only available on Enterprise Plans.

The second is using Workers. There is some code on a blog post to get you started.

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