My Wordpress site's URL is set to HTTPS in the WP settings. If you type domain.com, it redirects to www.domain.com. If you click on the logo, it'll take you to https:/www.domain.com. I'd like https to be enabled by default on all pages.
I tried using this as Brandozz recommended and it turns out my caching plugin as well but it keeps causing the loop error.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
My server used Nginx. The caching plugin is recommending adding a few lines of code but I'm not sure where or how. See http://docs.wp-rocket.me/article/36-fix-for-ssl-redirection-issue.. Cloudways is my host and I'm on a DigitalOcean server.