# Create a redirect if your root domain is inaccessible without using WWW

https://help.circle.so/p/administration/custom-domains/create-a-redirect-if-your-root-domain-is-inaccessible-without-using-www

Category: [Administration](https://help.circle.so/p/administration) › [Custom domains](https://help.circle.so/p/administration/custom-domains)

---

_Last updated: September, 2026_

This article will guide you through setting up redirect from non-www to www domain URL in Cloudflare if your domain hosting platform does not support domain redirect natively.

> ❗ **Important:** If you are looking to set up a custom root domain hosted by Cloudflare in your community, see [Set up a custom root domain hosted by Cloudflare](/p/administration/custom-domains/set-up-a-custom-root-domain-hosted-by-cloudflare).

> 💡 **Tip:** Before following this guide, we recommend checking your domain hosting documentation or contacting their support team to see if the option for domain redirect is available to you in your DNS settings.

> ℹ️&nbsp; **Note:** &nbsp;You don’t have to move your records to Cloudflare. You’ll only need to create an account and set up the redirect.

## **Step 1: Sign up for Cloudflare**

To get started, register an account with Cloudflare here: [**dash.cloudflare.com/sign-up**](https://dash.cloudflare.com/sign-up).

## **Step 2: Add Site**

Add your domain as a site to manage your domain on Cloudflare.

1. **Add Site**

2. **Choose plan**

3. **Review DNS records**

4. **Change nameservers**

> ❗ **Important:** Please note that updating your domain hosting platform’s nameservers with nameservers provided by Cloudflare is required to enable this setup. Please follow the steps as shown in the **Change your nameservers step** (below image) to update it.

Depending on your host provider, the name server updates can occur almost immediately or take 24 to 48 hours.

 ![](https://assets-v3.circle.so/42dferip3nkl8oscas8wd7s1fy3u)
## **Step 3: Set up records**

As mentioned in Step 2 of this article, Cloudflare will scan for DNS records from your domain hosting platform when you are adding a site to Cloudflare. Please review them once the site has been added. If any record is missing or not imported from your domain hosting platform, add them to the Cloudflare DNS as shown below.

### **A record**

> ❗ **Important:** Make sure you have the proxy status enabled for the A record.

Here is an example of A record in Cloudflare for your root domain:

 ![](https://assets-v3.circle.so/1t939kq83f5sjnfi0y0u69nj32v9)
### **CNAME record**

> ❗ **Important:** Disable the proxy status and ensure it says DNS only when setting up or verifying CNAME record.

Here is an example of a CNAME record for your custom domain setup in Cloudflare:

 ![](https://assets-v3.circle.so/2vrjl8ec77lqdrizupm8lc3pt9dv)
## **Step 4: Update SSL settings**

1. Click **SSL/TSL** in the sidebar menu.

2. Ensure the SSL/TLS encryption mode is set to **Full**.

 ![](https://assets-v3.circle.so/mnl2vlvc156rr6v1ph4u67x0wfzx)
## **Step 5: Add page rules**

Page rule allows you to create redirect rules for your root domain to redirect non-www domain URL to www domain URL.

### **Add page rule to always use HTTPS**

1. In the sidebar menu, click **Rules** → **Page rules**.

2. Click **Create Page Rule**.

3. Enter your domain (e.g., [**www.domain.com**](http://www.domain.com/)) in the **URL** field.

4. Choose **Always Use HTTPS** from the dropdown under the **Pick a setting** option.

5. Click **Save and Deploy Page Rule**.

 ![](https://assets-v3.circle.so/hlujgg9kotp0fhii6st08mqi2q59)
### **Add page rule to forward URL**

1. In the sidebar menu, click **Rules → Page rules**.

2. Click **Create Page Rule**.

3. Enter your domain without www and use “/\*_” at the end (e.g.,_ [**_domain.com/_**](http://domain.com/)) in the **URL** field.

4. Choose **Forwarding URL** from the dropdown and select **301 - Permanent Redirect** under the **Pick a setting** option.

5. Enter your domain starting with "[**https://www**](https://www/)" and ending with “/$1” as shown in the example below.

6. Click **Save and Deploy Page Rule**.

 ![](https://assets-v3.circle.so/all48somo30nyauv6nf5zjahm74c)
## **Step 6: Test redirect**

Once you have set the page rules, test this out in an incognito browser session using your domain URL without www, which should now automatically redirect it to your root domain URL with www.

## **Relevant articles**

- [Set up a custom subdomain](/p/administration/custom-domains/set-up-a-custom-subdomain)

- [Updating custom domain to a different one](/p/administration/custom-domains/updating-custom-domain-to-a-different-one)

- [Removing custom domain](/p/administration/custom-domains/removing-custom-domain)
