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

Share Post:

Share on facebook
Share on linkedin
Share on twitter
Share on pinterest
Share on email

Disclosure: I am an independent blogger and the reviews are done based on my own opinions. 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, which helps keep the lights on. 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 https://test2.wips.work
  • 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. www.test2.wips.work.

The error message “This site cannot be reached” will no longer appear. Your browser will redirect you to https://test2.wips.work automatically. 

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

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

How to justify text in Shopify’s pages?

Do you know?  In order to customize the look and feel of your web store in Shopify, it is highly recommended that you learn some simple coding to improve the user experience and navigation. One of the requests I often received from clients will be justifying the text in specific pages such as Privacy Policy,

Get huge discounts on Steam games, eBooks, softwares at Humble Bundle

It’s vital to take breaks from work from time to time and play video games, read a novel or take up a new hobby. Since it is best to stay at home due to Covid19, Check out what Humble Bundle has to offer without burning a hole in your pocket, and you can also donate

How to add email accounts into your Gmail?

Send/receive business emails via Gmail Do you know that you can read and compose an email with multiple email accounts in Gmail?  *Note: You can do so other email providers such as Yahoo!, Outlook. I prefer Gmail.  As a business owner, I have subscribed to budget mail hosting services for my business emails. Such services

Scroll to Top