Quantcast
Channel: Support – Jetpack
Viewing all articles
Browse latest Browse all 371

Use Jetpack and CloudFlare on your WordPress site

$
0
0

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

CloudFlare is a popular CDN, caching, and protection service. It can be used with WordPress, and is compatible with Jetpack.

To get started, you’ll want to follow the instructions here to add your site to CloudFlare.

Once you’ve done so, we’d recommend doing the following:

Create a PageRule to exclude WordPress’ dashboard from CloudFlare.

While CloudFlare is useful for your readers, you do not need to use it for your site’s dashboard. It may in fact cause some issues. Luckily, you can set up rules so CloudFlare ignores your site’s dashboard.

  1. Go to “Page Rules” in your CloudFlare dashboard.
  2. Under “Add New Rule”, enter the following: *yoursite.com/wp-admin*
  3. Make sure caching, apps, and performance are disabled.
  4. Save your changes.

CloudFlare Page Rules for Jetpack

Use CloudFlare’s SSL certificate on your site.

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

    CloudFlare's SSL options

  2. Wait for the changes to be available on your site.
  3. Install and activate the CloudFlare plugin.
  4. Install the CloudFlare Flexible SSL plugin to avoid running into Redirect loop issues in your dashboard.
  5. Enable Administration over SSL (reference) by adding the following to wp-config.php:
    /**
     * Admin over SSL
     */
    define('FORCE_SSL_ADMIN', true);
    
  6. Set the port to 443 by adding the following to wp-config.php:
    /**
     * Set port to 443
     */
    $_SERVER['SERVER_PORT'] = 443;
    
  7. Under Settings > General in your dashboard, change both your site address and WordPress address to use HTTPS.
  8. In your CLoudFlare settings, create a Page Rule to redirect all traffic from HTTP to HTTPS.

You should then be all set! Install the Jetpack plugin by following the instructions here!


Viewing all articles
Browse latest Browse all 371

Trending Articles