...
This doesn't normally present any problem until you also have a frontend website with us and wish to use a naked domain (no www) to either serve or redirect to your main domain (normally the www version). ) For example using the tprofile.com domain you will almost certainly require https://tprofile.com to forward requests to https://www.tprofile.com (or vice versa).
...
Create a Cloudflare account
Add your domain under Websites. If you’re using a new domain it will be a case of simply changing the nameservers on your current domain name provider. If it’s an existing site Cloudflare offers a useful migration tool to bring in all your existing DNS entries before changing the nameservers to theirs.
Once you have this you can then add/update two DNS records for naked and www domains.
Now for handling the redirect go to Rules > Page Rules and select Create Page Rule, the example below redirects the naked domain to the www version but you can easily change this to work in the opposite manner