Redirecting `example.com` to `www.example.com` when using Cloudflare

This tutorial covers redirecting example.com to www.example.com when using Cloudflare, to do the opposite, please see Redirect www.example.com to example.com .

You should replace all instances of example.com in the screenshots with your domain.

Step 1, The DNS Record:
The first thing you will need is a DNS record for @, set to :orange:. This can point to any IP address as the redirection page rule will execute first. I would recommend pointing it to 192.0.2.1, a dummy IP.

https://community.cloudflare.com/t/redirect-example-com-to-www-example-com/78348