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.
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?