Bulk redirect

Hi! I'm trying to configure a Bulk Redirect in Cloudflare so that any request to https://example.com/[anything] redirects to https://app.targetsite.com/[same-path]. (I have many domains that I want to redirect to the targetsite)

For example:
https://example.com/abc123 https://app.targetsite.com/abc123

I also want subdomains like www.example.com or test.example.com to be redirected the same way to app.targetsite.com, following the exact same rule.
It's important that everything after the slash (/) is preserved and passed to the destination URL.

Here’s what I’ve done so far:

Created a Bulk Redirect List with:
https://example.com/* https://app.targetsite.com/${1} (301)

Enabled the redirect rule and selected the list

Added an A record for example.com pointing to 192.0.2.1, proxied (orange cloud)

It doesn’t seem to be working yet.

Do I need to configure anything else in DNS or the redirect settings?
Should I enable options like “Subpath matching” or “Include subdomains?
Do I need additional DNS entries for the subdomains?

Thanks a lot in advance for your help!
Was this page helpful?