How to Add a Free SSL Certificate with Cloudflare (Move to HTTPS)
In this guide
- Why HTTPS Matters for Your Site
- Step 1: Get a Free SSL Certificate With Cloudflare
- Step 2: Turn On Cloudflare's SSL Settings
- Step 3: Add a Page Rule to Force HTTPS
- Step 4: Replace Old HTTP Links in Your Database
- Step 5: Verify That SSL Is Working
- Step 6: Update Search Console and Analytics
- Common Problems and Quick Fixes
- The Bottom Line: Free SSL Certificate with Cloudflare
That small padlock in the browser address bar matters more than most beginners realise. It tells visitors their connection to your site is encrypted, it stops browsers from flashing "not secure" warnings, and search engines treat HTTPS sites more favourably than plain HTTP ones. The good news is that you do not need to buy a certificate to get it: a free SSL certificate with Cloudflare is available on the free plan, and setting it up on a WordPress site takes less than an hour.
This guide shows how to get a free SSL certificate with Cloudflare and move your site from HTTP to HTTPS, step by step. It works with almost any host, and you do not need to change hosting companies to do it.
Why HTTPS Matters for Your Site
An SSL certificate encrypts the data travelling between your visitor's browser and your server, so passwords, form entries and browsing activity cannot be read by anyone snooping on the connection. Without it, browsers warn visitors that your site is not secure — a message that sends many people straight back to the search results. HTTPS also protects your login credentials when you work on your site from public Wi-Fi, and it is a small but real ranking factor in search. In short, HTTPS is no longer optional for a serious website.
Step 1: Get a Free SSL Certificate With Cloudflare
Start by creating a free Cloudflare account and adding your domain. Cloudflare will scan your existing DNS records automatically — this usually takes a minute or two — and show you what it found. Check that the scan picked up your main records, then choose the free plan. Cloudflare will give you two nameservers: log into your domain registrar, replace your current nameservers with Cloudflare's, and wait for the change to spread across the internet. This can take a few minutes or a few hours, but your site stays online throughout.
Step 2: Turn On Cloudflare's SSL Settings
Once your site is active on Cloudflare, open your site's dashboard and find the SSL settings. Set the encryption mode to Flexible if your host does not have its own certificate, or Full if it does. Then switch on two helpful options: Automatic HTTPS Rewrites, which fixes old HTTP links inside your pages, and Always Use HTTPS, which sends every visitor to the secure version of your site. These two toggles do most of the migration work for you.
Step 3: Add a Page Rule to Force HTTPS
Even with Always Use HTTPS enabled, it is worth adding a page rule as a safety net. In Cloudflare's Page Rules section, create a rule matching your domain with a wildcard at the end, and set it to always use HTTPS. This guarantees that any stray HTTP request gets redirected to the secure version, with no exceptions and no mixed-content surprises.
Step 4: Replace Old HTTP Links in Your Database
Your posts, pages and widgets may still contain links starting with the old HTTP address. A search-and-replace plugin can update them all at once in your database. Before you touch the database, take a complete backup — this step changes many records in seconds, and a backup is your undo button. Install a search-and-replace plugin, enter your old address and your new HTTPS address, and first run it in dry-run mode so you can preview the changes. When the preview looks right, run it for real.
Step 5: Verify That SSL Is Working
Visit your site and check for the padlock icon in the address bar. Then run your domain through a free SSL checker tool, which will scan your certificate and report any problems, such as expired certificates or incomplete chains. Click through a few pages and check the browser console for mixed-content warnings — these appear when a page loads over HTTPS but still pulls an image or script over HTTP. Fix any stragglers by updating the link or re-uploading the file.
Step 6: Update Search Console and Analytics
Search engines treat the HTTP and HTTPS versions of your site as different addresses, so finish the job properly. Add the HTTPS version of your site to Google Search Console, and update the address in your analytics tool. Submit your sitemap from the HTTPS address, and check that your internal links and your social profiles point to the new secure address. This keeps your search rankings intact while the migration settles.
Common Problems and Quick Fixes
- Endless redirect loop: this usually means the SSL mode in Cloudflare does not match your host's setup. Try switching between Flexible and Full until the loop stops.
- Padlock missing on some pages: a page is loading something over HTTP. Use the browser console to find the insecure item and update its link.
- Site looks broken after the switch: clear Cloudflare's cache and your browser cache, then reload. Old cached files are the usual cause.
- Changes take time to appear: DNS and cache updates can take a while. Wait an hour before assuming something is broken.
The Bottom Line: Free SSL Certificate with Cloudflare
A free SSL certificate from Cloudflare gives your WordPress site encryption, a padlock, better search treatment and more trust from visitors — all without spending anything or moving hosts. Add your site to Cloudflare, switch on its SSL options, replace the old links in your database, and verify the result. Set aside an hour, keep a backup handy, and your site will be on HTTPS before the day is out.
Earn
Zohaib Faisal is the founder and editor of EarnDesk. Based in Lahore, Pakistan, he runs the online store Haseeb Collections and works as a freelancer on Fiverr (virtual assistance, AI content writing, AI prompt engineering and digital marketing). He builds websites — Haseeb Collections, EarnDesk and a temporary-email service — writes SEO-focused content, and has hands-on AdSense experience across his sites. He has earned 15+ professional certificates from Google, IBM, Microsoft, HubSpot, Cisco, the Linux Foundation, Unity, Semrush and Harvard (CS50P), and creates the YouTube channel Clips by Zohaib. On EarnDesk he writes practical, honest guides to help beginners earn online — without hype or "get rich quick" promises.