Cloudflare bulk redirect

When using example.com as source url and redirecting to https://www.example.com/ gives redirect loop. (No scheme is used in source url )