Using SSL With WP Rocket

If you are using SSL on your website, make sure to take the following steps to ensure that it works correctly with WP Rocket:

1

Change your site settings to HTTPS

Go to Settings → General and make sure these fields include HTTPS in your website address:

General Settings page in WP Admin

2

Redirect all HTTP traffic to HTTPS

Follow this tutorial for guidance:
Redirect HTTP to HTTPS

Alternatively you may also find this plugin useful to manage the redirect and also help fix insecure content problems:
Really Simple SSL

Using A CDN With SSL

When you have an SSL site and you have a CDN, your CDN must also be SSL-enabled, otherwise it will cause problems such as CSS and other files not loading, because the browser will block them.

If you activate the CDN option on your SSL site and have an issue, you can check if your CDN has SSL enabled with this simple test:
Visit your CDN URL in your browser. If you get a security warning like the one depicted below, it means SSL is not enabled on your CDN:

Privacy warning message

The solution is to contact your CDN provider and ask them to enable SSL on your account.

Using CloudFlare’s Flexible SSL

CloudFlare’s Flexible SSL is not very WordPress-friendly and can cause issues. These are common ones:

1

Resolving a Redirect Loop

A common problem when using WordPress and CloudFlare’s Flexible SSL is getting a redirect loop. You can fix this using this plugin:
CloudFlare Flexible SSL

2

CloudFlare-specific Redirect

For redirecting non-HTTPS traffic, use this CloudFlare-specific rewrite rule in your .htaccess file:

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ https://www.example.com/$1 [L]
	

Note: Make sure to replace https://www.example.com with your own domain name in the second line.