Exclude Path from Bulk Redirect

Hi all,
On our production site, we have a bulk redirect rule for redirecting all traffic from
site.com
-> www.site.com. However, for some verification files (eg .well-known/microsoft-identity-association.json) the file must sit on the root domain.

I have setup a simple Cloudflare worker for showing that file if the path matches the verification file path.

However, as we have a bulk redirect rule, vising site.com/verification.txt will redirect to www.site.com/verification.txt. Is there a way to exclude only this one path?

Many thanks!
Was this page helpful?