> For the complete documentation index, see [llms.txt](https://onwhatsapp.gitbook.io/quick-start/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onwhatsapp.gitbook.io/quick-start/agency-partner-setup/cloudflare-setup.md).

# Cloudflare Setup

Make sure you host your domain on **Cloudflare,** it's simply done by porting your name servers. If you're new to this for your agency, follow these guides

* [ ] [Your own domain](/quick-start/your-own-domain.md) (please use your **root domain**, ~~not a subdomain~~)
* [ ] [Enable SSL](/quick-start/enabling-ssl.md)

Assuming your root domain is now on Cloudflare, here's what you need to do and keep in mind:

1. Your root domain will host the white-labelled OnWhatsApp dashboard
2. Your subdomain will be used to house your website, for example, **<https://get.onwhats.app>**
3. Your customers will login to their dashboard from **<https://YOUR-DOMAIN.COM/login>**
4. For the above setup, we need to enable page rules on Cloudflare

Login to your Cloudflare account and tap **Page Rules**

![Login and click Page Rules](/files/-MSwvxsoJxBo7gu1uisY)

Next, Click **Create Page Rule**&#x20;

![Create Rule](/files/-MSx-UjRvztBrX4BEH3t)

* Key in your domain name, do not put \* in the end, that'll make the app misbehave, so you enter just your root domain, **for example, onwhats.app/**

![Select Forwarding URL](/files/-MSx03t4vqHB_jKA9J7w)

* Click Then the settings are dropdown and select **Forwarding URL**

Next, select **Permanent Redirect (301)**

![Select Permanent Redirect (301)](/files/-MSx0puAfhmYkDOThyci)

Last but not the least, your destination URL should be a subdomain you set, this is where your landing page is, where your customers discover you.&#x20;

{% hint style="info" %}
We use get.onwhats.app you can feel free to use as you please and make sure you have your A Record for this done as per your webhost!
{% endhint %}

Your final settings should look something like this, though with your domain settings

![Final settings](/files/-MSx1v4cBjtq7hK_Nhwm)

Now tap **Save.** Give it a couple of minutes and you're all set!
