How to Use Cloudflare SSL Certificates with WordPress Multisite Subdomains and cPanel

| | Security, Tutorial, WordPress

Recently my client Razzball made the transition to having a secure suite of websites. The ride was not an easy one, due to the learning curve on configuring Cloudflare and a suite of WordPress websites using subdomains.

Razzball runs a multisite network with subdomains that looks like this:

  • (the original Baseball site)

Usually it doesn?t take a lot of time and effort to make a WordPress site run under HTTPS, but the game changes significantly with the combination of WordPress multisite subdomains, Cloudflare, and cPanel.

Here?s what we did to make WordPress Multisite work with Cloudflare SSL on a cPanel server:

1. Generate the Certificate and Install the Certificate in cPanel

Use the following the Cloudflare documentation to generate the CSR and install it in cPanel:

2. Force WordPress Multisite to use HTTPS

Using phpMyAdmin in cPanel, modify the following values in wp_options to use https instead of http:

  1. siteurl
  2. home

After adjusting these two values, if you look at the sites in your WordPress Network Admin area, you?ll notice the site address on the subdomains now uses https.

3. Adjust Cloudflare settings

In Cloudflare, click Crypto and set the following:

  1. SSL: set to Full or Full (Strict).
  2. Always Use HTTPS: set to On.
  3. Automatic HTTPS Rewrites: set to On.

4. Visit your sites and enjoy the security

All of your subdomains are now running smoothly on https with the Cloudflare SSL Certificate. Time to celebrate!

One Response to “How to Use Cloudflare SSL Certificates with WordPress Multisite Subdomains and cPanel”

  1. Melanie

    Great Article! – How did you deal with the DNS settings in Cloudflare and in cpanel for that matter – I’ve followed your instructions above but now am getting that infamous 526 error again even though the certificate for reads cloudflare cert. This is driving me insane – so much work to do and spending all this time trying to sort this issue out – enough to make me pull my hair out!!

Comments are closed.