Visitors Now:
Total Visits:
Total Stories:
Profile image
By SiteProNews (Reporter)
Contributor profile | More stories
Story Views

Now:
Last Hour:
Last 24 Hours:
Total:

How to Use Jetpack and Cloudfare on a WordPress Site

Tuesday, November 8, 2016 22:18
% of readers think this story is Fact. Add your two cents.

(Before It's News)

I have recently moved my hosting to Dreamhost on its DreamPress 2 package with CloudFlare. First impressions… brilliant. Easy to use, quality-built and, best of all, it’s fast. The server response dropped from 1.3 seconds down to 200 milliseconds. The only downfall (if you can even call it that) was the use of Jetpack and CloudFlare on a WordPress site.

I had connection errors, statistic problems, and Jetpack’s publicize plugin would connect to my social networks. I knew there must have been a way to use Jetpack and CloudFlare on a WordPress site, I just needed to find what it was. Below is the answer:

Use Jetpack And Cloudflare On A WordPress Site

These are a few steps to follow to configure CloudFlare on your site, before installing the Jetpack plugin

We will be doing the following:

  • Create a PageRule to exclude the WordPress dashboard from CloudFlare;
  • Setting up CloudFlare’s SSL certificate on your site;
  • Redirect all visitors to HTTPS/SSL with CloudFlare.

Create A Pagerule to Exclude the WordPress Dashboard from Cloudflare

This PageRule is to ensure CloudFlare ignores your site’s dashboard. As previously mentioned, it is known to cause issues with Jetpack and CloudFlare on a WordPress site. Thankfully, it isn’t really required for your WordPress dashboard.

1. In your CloudFlare dashboard, go to the PageRules section.
2. In the “Add New Rule” section, enter the following: *yoursite.com/wp-admin*
3. Select the following options:

  • Forwarding: Off
  • Always use https: Off
  • Custom Caching: Bypass Cache
  • Browser Cache Expire: 4 hours
  • Always Online: Default
  • Apps: Off
  • Performance: Off
  • Security: Off
  • SSL: Default
  • Security Level: Default
  • Browser Integrity Check: Default

image1

4. Save your changes.

Setting up Cloudflare’s SSL Certificate on your Site

1. Under the Crypto menu, enable on of CloudFlare’s SSL options.

image2

2. Wait for changes to take affect, approximately between 20 minutes and four hours.
3. Install and activate the CloudFlare Plugin.
4. To avoid running into a loop, install the CloudFlare Flexible SSL Plugin.
5. Enable administration over SSL by adding the following code to wp-config.php.

screen-shot-2016-11-08-at-9-23-39-am

6. In the WordPress admin, under Setting > General, change both your site address and WordPress address to use HTTPS.
7. Wait for changes to take affect, approximately between 20 minutes.

Redirect All Visitors to HTTPs/SSL with Cloudflare

1. In your CloudFlare dashboard, go to the PageRules section.
2. In the “Add New Rule” section, enter the following: http://*yoursite.com*
3. Set “Always use HTTPS” to on.

image3

4. Wait for changes to take affect, approximately between 20 minutes.

And thats it. You should be all done and ready to use Jetpack and CloudFlare on a WordPress site.


avatar

The post How to Use Jetpack and Cloudfare on a WordPress Site appeared first on SiteProNews.

Report abuse

Comments

Your Comments
Question   Razz  Sad   Evil  Exclaim  Smile  Redface  Biggrin  Surprised  Eek   Confused   Cool  LOL   Mad   Twisted  Rolleyes   Wink  Idea  Arrow  Neutral  Cry   Mr. Green

Top Stories
Recent Stories

Register

Newsletter

Email this story
Email this story

If you really want to ban this commenter, please write down the reason:

If you really want to disable all recommended stories, click on OK button. After that, you will be redirect to your options page.