I'm having some issues with setting my Wordpress and site URL to the https and www version. I'll use example.com, instead of my actual site address, but here is the gist of my issue:
I had my Wordpress URL and site URL set to http://www.example.com. A few days ago, I installed W3 Total Cache and Cloudflare (as a W3 Total Cache extension). Since Cloudflare provides a free SSL, I wanted to default to the https version of the site. So, I went into the Wordpress general settings and changed the Wordpress and site URLs to https://www.example.com
After that, I got "too many redirects" errors in Chrome and could not sign in to the wp-admin area. I reset the Wordpress and site URLs by adding these lines to my functions.php file:
update_option( 'siteurl', 'http://example.com' ); update_option( 'home', 'http://example.com' );
I can now log in to the wp-admin area and I have removed those two lines from the functions file; however now, if I even change the Wordpress and site URLs to add the www, I get the "too many redirects" error and cannot get into the wp-admin area.
So, I'm kind of lost at this point as to how to get the www back, let alone how to add the https to the General Settings. I don't know if this has anything to do with the W3 Total Cache or Cloudflare plugins; but, I didn't want to try deactivating them because I only have the SSL as a part of Cloudflare.
As a side note, I also cannot connect to my site in FileZilla, since my initial attempt to change the URL (even as I can now access wp-admin with the URLs set to http://example.com). I have no idea why that is. But I can access the files from within my host's CPanel, so I can make changes there.