How to add www to your website on Cloudflare

After you add your site to the Cloudflare, you mind wondering how to add www to your naked domain. Here is how:

  1. Go to your Cloudflare dashboard then click on the Navbar-> DNS.

2. Then scroll down to add an A record and point IP to 192.0.2.1

3. Go to the Rules

4. Deploy a page rule like this

URL’s last character ‘*’ means forward all pages and keep the path

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store