Redirect Cloudflare domain to other Cloudflare domain

I’m trying to redirect example.com and www.example.com (no wildcards, exact match only) to another domain www.example2.com. I’ve tried redirect rules, page rules, and CNAME flattening, proxy vs. not on the CNAMEs, adding A and AAAA stub records. Unsure of the exact variant that should work to perform this action.

Any suggestions for a guide on what to use vs. not to use? Most seem to return 404s for me, so I think some of these tools require proxying or other things.

If you are redirecting only, then add DNS for @ and www, each pointing to a proxied dummy record of A 192.0.2.1 or AAAA 100::.

Then create a redirect rule like this…

(You can change “Dynamic” to “Static” and the expression to just “https://www.example2.com” and turn off “Preserve query string” if you don’t want to pass any paths).

2 Likes

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