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/abc123https://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!
6 Replies
Chaika
Chaika4mo ago
It doesn’t seem to be working yet.
With what error?
Marti(R)
Marti(R)OP4mo ago
It just doesnt redirect me
Chaika
Chaika4mo ago
and instead, what do you get? an error page? a dns resolution error from your browser?
Marti(R)
Marti(R)OP4mo ago
DNS_PROBE_FINISHED_NXDOMAIN
Chaika
Chaika4mo ago
So it's either DNS cache or the record is wrong. Did you try from another device like a mobile phone? If you can share the url that should be redirected that'd also be helpful
Marti(R)
Marti(R)OP4mo ago
https://wwwgoogle.uk or https://microsofts.cc should get redirected to app.movsentry.com Please note this domains are part of our cybersecurity awareness plattform 'www.movsentry.com' and there is nothing malicious behind this domains. We just need it to track if a user clicks in the link, so we can mark the phishing simulations as 'failed' in our plattform

Did you find this page helpful?