May I ask if, from the shared screenshot, you want to achieve to redirect non-www to www or vice-versa using Redirect Rules?
From the shared domain, you’re missing A www, while A example.com has redirect loop issues.
Double-check for missing DNS records like A www and/or A example.com both proxied and pointed to the IP address (could be you’re using CNAME instead of A)
If you have one of them, add the other one pointed to the temporary IP address 192.0.2.1 and
Using Redirect Rules, you could select a snippet to redirect 301 www to non-www or vice-versa or example from the article below