Creating a Page Rule while using CNAME

I have this scenario where I have the below two DNS records:

DNS

CNAME xyz.com domain.paperform.app Proxy off
CNAME www domain.paperform.app Proxy off

The above, redirects the domain to paperform to access a custom form I created:

xyz.com/myform

If I try to access xyz.com, it auto-redirects to paperform.co

What I’m trying to achieve here, is to create an auto-redirect rule to redirect users visiting xyz.com to xyz.com/myform.

I tried to create a Page Rule and a URL Rewrite Rule but nothing is working.

Page Rule

URL: *xyz.com/
Forwarding URL 302 Temp Redirect
Destination URL xyz.com/myform

Transform Rule > URL Rerwite

When URI FULL equals https://xyz.com
Then
Rewrite to Static https://xyz.com/myform
Query Preserve

Any suggestions?

The issue here is that you have the proxies disabled. In that case none of the Cloudflare features will work.

1 Like

@sandro That’s true.

1 Like

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