Redirect domain name to www with CloudFlare (Scrile Connect)

 

This is useful in case TLD domain name is not setup

Requirements

 

Your domain name should be setup with CloudFlare before moving forward

How to setup

  1. Log into your Cloudflare account.

  2. Click the appropriate Cloudflare account for the domain where you want to add URL forwarding.

  3. Select Rules > Page Rules.

  4. Under Page Rules, click Create Page Rule. The Create Page Rule for <your domain> dialog opens.

  5. Under If the URL matches, enter your domain name in the following format: example.com/*

  6. Next, click Add a Setting.

  7. Choose Forwarding URL from the drop down menu.

  8. Click Select Status Code and choose 301 (Permanent Redirect).

  9. Enter the destination URL: https://www.example.com/$1

  10. To finish, click Save and Deploy.