Step-by-step guide to add www. redirection to subdomain with Cloudflare

Share Post:

Disclosure: I am an independent blogger and the reviews are done based on my own opinions. The information in this article is based solely on my own experience using the product. If I have not used the product, I will never give a review of it. My posts may contain affiliate links. You won’t pay a single cent more if you buy something through one of those links. But I’ll get a small commission, I would greatly appreciate it and, in this way, I can produce more valuable content in the future. Click here to read the full disclosure policy. Thanks!

It’s been awhile!

It’s been a while since I last posted. My apologies for my busy schedule as I am learning new things and running multiple businesses. I will likely focus less on banner images and more on writing content in the future. 

My topic today is a request I had encountered recently!
*Note: this guide will require basic knowledge on Cloudflare and Web Hosting management. And I will be using Cloudways Hosting for this tutorial.

Do you know?

By default, entering www. on sub-domain does not redirect to non-www sub-domain automatically. If the configuration is incorrect, you will receive the error message below:

Step 1: DNS Configuration

 I use the free plan from Cloudflare to manage all my domains. 

To enable www. on sub domain. You will have to:

  • Create “A record” for the sub domain; e.g. test2 is equivalent to
  • Add another “A record” with www. before your sub domain name. e.g. www.test2
  • Points both record to your web hosting server IP address
  • Important! Set both “Proxy status” to DNS only.

Step 2: Renew SSL certificate

The next step is to renew your SSL certificate. Navigate to your website’s SSL Certificate and click “Renew Now”. 

*I’m currently using Let’s Encrypt SSL through Cloudways. This is a free SSL certificate option I love, as it’s incredibly easy to set up and auto-renew for you.  Read more about Cloudways in this article: Why Cloudways is my first choice for web hosting

Step 3: Test your URL

Now all you need to do is simply keying the URL. E.g.

The error message “This site cannot be reached” will no longer appear. Your browser will redirect you to automatically. 

That’s all for today, and hopefully it will be useful! Take care, be safe, and stay healthy during this epidemic!

2 thoughts on “Step-by-step guide to add www. redirection to subdomain with Cloudflare”

  1. I’m learning from you and love reading everything that is written on your website. Keep the information coming. I liked it!

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

Cloudways Web Hosting Summer Deal Banner Image

Cloudways Summer Deal: Up to 30% OFF + Free SSL Certificate

It’s an oversight! There is a summer deal for Cloudways until 25th August 2022 -> Get 30% off all plans for 6 months! This amounts to almost two months of free hosting.  What is Cloudways Web Hosting? Cloudways simplifies your web hosting experience with a managed cloud hosting platform. As opposed to traditional hosting providers using

Elementor is 6 years old! Up to 60% off everything.

Interested in creating your own website or becoming a web designer? Have you been struggling with WordPress for too long? It’s about time you tried Elementor, a WordPress page builder! What is Elementor? Elementor is a revolutionary WordPress plugin that enables you to create beautiful, dynamic, responsive pages quickly. Your WordPress website is at your

Free resources for your design project
Why I chose Astra Theme over Neve Theme
How to change the background color of the WooCommerce Store Notice
Photoshop CC - Removing Number Sequence for Export Layers to Files
How to save money on IT expenses with Appsumo
Elementor is 6 years old! Up to 60% off everything.
1 2 3 4
I hope that the information I have shared will prove useful for your business or work. If you find it valuable, I would greatly appreciate your support through a tip to help with the maintenance of the website. Thank you!
Scroll to Top