Select "Page Rules" from the top navigation in Cloudflare.
Click the "Create Page Rule" button.
The first field is the URL you want to match, for example example.com. You will want to enter the non WWW url with an astrisks to match any path as well.
Then from the "Pick a Setting" field you will want to select "Forwarding URL".
For the "Status Code" field select "302 - Temporary Redirect".
For the destination URL use the following as an example and replace the domain with yours. Don't forget the $1 at the end, this is the capture group that will carry the path from the forwarding URL.
Now Click "Save and Deploy", you may also need to clear cache. That is it, you should be good to go.
Hi, I am Front End Developer working my way up the stack. I am passionate about web development and growing as a developer.