How to make Cloudflare Flexible SSL work with WordPress

WordPress is a great and very popular website building tool, and Cloudflare is a great way to get HTTPS on your website for free. Thanks to Cloudflare’s Flexible SSL system, you don’t even need to manage SSL certificates to use it!

However, getting WordPress to show a padlock and make all pages work can be a bit tricky. This article explains a good way to configure your website correctly with Cloudflare Flexible SSL.

Heads up! Instead of making WordPress work with Flexible SSL, you can also configure you website with Full SSL on Cloudflare instead! Using Full SSL is more secure, easier to setup on the WordPress site and quite easy to setup on the hosting side too. See this article on how to set it up: How to setup Full SSL with Cloudflare

Ensure your WordPress admin area is currently accessible

If you’ve already attempted to make WordPress available on HTTPS yourself, you may have locked yourself out of your WordPress admin area. If so, you should probably see errors like this when trying to access it:

  • Google Chrome (and derivatives): ERR_TOO_MANY_REDIRECTS
  • Mozilla Firefox: This page isn’t redirecting properly

To regain access to your WordPress admin area, you can do the following:

  1. Login to your client area, find your hosting account, click Manage and then go click Control Panel.
  2. Go to phpMyAdmin, find your WordPress database and click Connect Now.
  3. Find the table with the name ending with _options and click on the name.
  4. Find the rows with the column option_name matching siteurl and home. These should be the first two in the list, but you can use the Search function if you can’t find them.
  5. Double click the value in the option_value column, and change the start of the URL from https:// to http://.

If you have multiple databases and you don’t know which database corresponds to your WordPress website, you can find your database in the installation details in Softaculous, or by checking the wp-config.php of your WordPress installation.

With this option changed, you should be able to login to the WordPress admin area again.

Make sure your Cloudflare settings are clean

If you’ve just enabled Cloudflare, all the Cloudflare settings should be standard, which is good.

If you’ve already tinkered with the Cloudflare settings before trying to get HTTPS to work, here are some settings to verify:

  • In the SSL/TLS → Overview tab, Encryption Mode is set to “Flexible”.
  • In the SSL/TLS → Edge Certificates tab, the setting “Always Use HTTPS” is set to Off.
  • In the SSL/TLS → Edge Certificates tab, the setting “Automatic HTTPS Rewrites” is set to Off.

Install the Really Simple SSL plugin

The easiest way to get Flexible SSL to work properly is with the - aptly called - Really Simple SSL plugin. You can install the plugin by hand or automatically through the WordPress admin area.

From there, making HTTPS work is as simple as hitting the enable button to make HTTPS work for both your front website and WordPress admin area!

After enabling the plugin, you can also enable the .htaccess in Really Simple SSL, enable Always Use HTTPS in Cloudflare, or both, to enforce HTTPS on all pages.

2 Likes
SSL certificate issue
The server Is probably offline | Error
Website died
Wordpress cant edit pages (offline)
I can't see my website
SSL certificate uploaded but not detected when installing WP
The page isn’t redirecting properly
Subdomain works but main domain does not
WordPress Website Redirection Issue (ERR_TOO_MANY_REDIRECTS
Website Not Redirecting Properly
CloudFlare nameservers
This page isn’t working
Wordpress Changed Domain/Url
Changed http to https accidently and now the website and admin panel is gone
Site not loading, "too many redirects"
WordPress error when saving: "There was an error. You are probably offline."
When I click to update widgets in worpress they tell me there was an error. Probadly you are in offline abut I am in online
The site and account are not working
Cloudflare Not working
I can't see my website
Mixed content issue
Installed wordpress but not working
WordPress help, Please
This page isnt working
Text not showing in text editor
The key uses greater than 2048 bits
Theme customizer
SSL Certificates Deletion Problem
My website didn't redirect http to https
Changed http to https accidently and now the website and admin panel is gone
Website not working
Parked Domain
Too many redirects error
Website redirect too many times & SSL issues
Error establishing a database connection
Alter DNS for TXT
Information
Lost wordpress dashboard
Wordpress admin fails to open
Website & WP Dashboard not working after adding SSL Certificate from Cloudflare, Really simple SSL
How to connect cloudflare
WP Admin not loading
Domain redirects
Https Cloudflare lost wp-admin access
Updating failed. You are probably offline
Updating failed. You are probably offline
WordPress Error
Site not loading, "too many redirects"
Wp-admin not working
Cannot access website due to plug-in and SSL issues
Cannot to login to my website's admin panel after changing http to https
Please help lost admin and dashboard privilege due to ssl insecure content fixer
Http to https
Domain forwarding
I can't access wp-admin
Facebook Opengraph Meta
Invalid response in a curl request
Redirected you too many times
Cant reach my wordpress admin panel
This site can’t provide a secure connection lonestarbottlecaps.info uses an unsupported protocol
ERR_TOO_MANY_REDIRECTS after install Wordpress
ERR_TOO_MANY_REDIRECTS Error on www.matheusliziardi.com.br
Help with website
Server suspended for adding domain
This page isn’t working....redirected you too many times
Hey i am getting error 521 cloudflare said to inform you , so i am

2 posts were split to a new topic: The key uses greater than 2048 bits