الاثنين، 4 يونيو 2018

How to Setup CloudFlare Flexible SSL for WordPress


Setting up your free Cloudflare Flexible SSL

  1. Sign up to Cloudflare
  2. Select the free plan
  3. Follow the step for adding your domain name
  4. When you have registered and set up your domain name, click on your domain
  5. At the top there will be a row of icons click on Crypto
  6. The first option will be SSL, select flexible SSL
cloudflare flexible ssl
You have now requested a Flexible SSL Certificate from Cloudflare and will normally take around 15 minutes to issue you one. Cloudflare will tell your Flexible SSL is active by displaying a green active box below.

Preparing WordPress for Cloudflare’s Flexible SSL

IMPORTANT – In your WordPress backend leave your WordPress Address (URL) and Site Address (URL) as HTTP.
Next, you will have to install both of these two plugins below.

CloudFlare Flexible SSL Plugin

This plugin is essential for enabling Flexible SSL on WordPress and will prevent infinite redirect loops when loading WordPress sites under CloudFlare’s Flexible SSL system.
cloudflare flexible ssl plugin

WordPress HTTPS Plugin

This plugin isn’t essential if all of your plugins and links on your website are already HTTPS. Most people’s links aren’t so this plugin changes them all to https.
WordPress HTTPS (SSL)

Configure WordPress HTTPS Plugin’s Settings

  1. Go into the plugin’s settings
  2. Select yes for the proxy setting
  3. Save
https-proxy-setting

Instruct CloudFlare to deliver our content via HTTPS

  1. Go back to Cloudflare
  2. Select your domain
  3. In the row of icons at the top select page rules
  4. Turn “always use HTTPs” on
  5. Add your domain name as the page rule in between two asterisks
  6. Click add rule
cloudflare page rules ssl

Change your WordPress Site Address (URL)

Finally change your Site Address (URL) to “https://”, but make sure you leave the WordPress Address (URL) as “http://”.
**IMPORTANT** If you change your WordPress Address (URL) to “https://” it will break your site. If you change your Site Address (URL) to “https://”, without the Cloudflare Flexible plugin running it will also break.
site-address-url

Check your Cloudflare Flexible SSL is working

That should be you setup with your new free Cloudflare Flexible SSL Certificate. Just visit your website in a browser and check to see if the green lock is showing on the top left of your address bar.

Related Links:

https://www.cloudflare.com/ssl/
https://support.cloudflare.com/hc/en-us/articles/218411427
https://support.cloudflare.com/hc/en-us/articles/200170516-How-do-I-add-SSL-to-my-site-
Source: https://jonnyjordan.com/blog/how-to-setup-cloudflare-flexible-ssl-for-wordpress/


0 التعليقات:

إرسال تعليق