How to enable Cloudflare SSL and fix a broken WordPress site

Updated 17/11/2026: this guide has been rewritten. The original version recommended Cloudflare’s “Flexible” SSL mode and the “Cloudflare Flexible SSL” plugin, which is no longer good advice.

When you turn on the Cloudflare proxy (the orange cloud) for a WordPress site, Cloudflare provides the SSL certificate that visitors see. If the SSL settings between Cloudflare and your web server are wrong, the site can load without styles, show mixed-content warnings, or get stuck in a redirect loop (“too many redirects”). Here is how to set it up properly.

1. Make sure your web server has its own certificate

Your hosting server needs a valid SSL certificate as well as Cloudflare. On cPanel hosting, AutoSSL (Let’s Encrypt) usually handles this for you. Alternatively, create a free Cloudflare Origin Certificate under SSL/TLS > Origin Server and install it on the server.

2. Set the SSL/TLS mode to Full (strict)

In the Cloudflare dashboard go to SSL/TLS > Overview and choose Full (strict). This encrypts the connection all the way from the visitor to your server and checks the server’s certificate.

Avoid Flexible mode. It only encrypts traffic between the visitor and Cloudflare, sends it to your server unencrypted, and is the most common cause of redirect loops with WordPress.

3. Turn on Always Use HTTPS

Under SSL/TLS > Edge Certificates, switch on Always Use HTTPS so every http:// request is redirected to https://.

4. Update the WordPress addresses

In WordPress go to Settings > General and make sure both the WordPress Address and Site Address start with https://.

5. Fix any mixed content

If some images or styles still load over http://, update the old links in the database with a search-and-replace tool (for example, replace http://yourdomain with https://yourdomain), then clear any caching plugin and the Cloudflare cache (Caching > Configuration > Purge Everything).

You do not need the old “Cloudflare Flexible SSL” plugin. It was only a workaround for Flexible mode and is no longer maintained.

Need a hand setting up Cloudflare or SSL for your website? Call King Computer Solutions on 1300 54 64 74 or email [email protected].