In this blog post, I’ll show you how to set up HTTPS on your website using a free CDN like Cloudflare. There are many benefits of encrypting traffic over HTTP such as improved security and search engine ranking. It’s also an important step in improving the privacy of internet users everywhere!
Setting up Cloudflare to only use HTTPS is pretty straightforward.
In Cloudflare settings
- Login to Cloudflare >> select the site
- Go to SSL/TLS tab >> Edge Certificates
- Turn ON “Always Use HTTPS“

Alternative Method
The other way is to use page rules.
- Go to Page Rules
- Click “Create Page Rule”
- Enter the URL (put the asterisk, so all URLs are redirected)
- Click “Add a Setting” and select “Always Use HTTPS” from the drop-down
- Click “Save and Deploy“

After a few minutes, all URLs will be directed via HTTPS. Check your site for mixed content (HTTPS vs. HTTP); having HTTP assets will cause your site to break.