Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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).

...

  1. Create a Cloudflare account

  2. 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.

  3. Once you have this you can then add/update two DNS records for naked and www domains.

  4. 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

    Image RemovedImage Added