How To Redirect Domains in Cloudflare (for non-www. and www.)

Walkthrough how to set up a domain redirect in your Cloudflare account. 

This tutorial will walk you through how to set up a domain redirect in your Cloudflare account.  (This is assuming you’ve already added your domains into Cloudflare. If not, check out our Cloudflare setup tutorial and then come back to this article.)

Setting up a redirect means that you’re ensuring the www. and non-www. versions go to the same page . In our example, we’re using thehelpdeskteam.com, so we’ll be setting up the redirect for thehelpdeskteam.com to direct to www. thehelpdeskteam.com, so either version a lead uses goes to the same place.

Step 1: Confirm your DNS records.

  • Log in to your Cloudflare account.

  • Navigate to the DNS page using the blue buttons at the top of the screen.

  • This is an example of what your setup may look like:

  • Be sure you have these 2 CNAME records: the root domain, and www.

style="margin-top:0;margin-bottom:0;padding-inline-start:48px;">The root domain will be proxied. The www. version will be DNS only.This is because we have the www. version in Enrollio under Settings > Domains.

Step 2: Set up a permanent redirect page rule.

  • Click “Save and Deploy” (or just “Save” if editing an existing rule.)

Troubleshooting

Q1: I'm keep getting Funnel Error Code 500 - Failed to execute 'appendchild' on 'node'. This node type does not support this method, what should I do?

1. Login to Cloudflare

2. Click on your domain where you are seeing the 500 error code

Click on your domain where you are seeing the 500 code error

3. Click on DNS tab within the left menu

4. Click on Edit

5. Uncheck Proxy status

6. Click on Save

 

Did this answer your question?
😞
😐
😁