Ensure www. Loads Your Site

By default, your domain is set to yourrafflesite.com. This means that if someone types www.yourrafflesite.com, they won’t land on your site. We need to make a few quick changes to fix this.


Add a CNAME Record in Cloudflare

  1. Login to your Cloudflare account.

  2. Click on your domain name (e.g. yourrafflesite.com).

  3. Click on DNS in the left-hand menu.

  4. Click Add Record.

  5. Under Type, select CNAME

  6. In Name, type www

  7. In Target, enter customers.rafflex.io

  8. Enable Proxy Status

  9. Click Save.


Set Up Redirect Rules

Now, we need to set up a rule to redirect customers to www.yourrafflesite.com from yourrafflesite.com.

  1. Click on Rules in the left-hand menu.

  2. You will see a list of templates – Select "Redirect from WWW to Root".

  3. No need to change anything – click Deploy.


Ensure HTTPS Redirect is Enabled

To make sure all traffic is secure and loads correctly, set up an HTTP to HTTPS redirect.

  1. Go back to "Rules".

  2. Find the "Redirect from HTTP to HTTPS" template.

  3. Click Deploy.

That’s it! Your www domain will now correctly redirect to your main site, and all traffic will be securely routed through HTTPS.

Last updated