Hey guys, I’m running several sites with HTTPS + Wordpress + CloudFlare activated, which is resulting in too many redirections:
http://example.com -> http://www.example.com -> https://www.example.com -> https://example.com
I understand that this config is not ideal for speed but was unable to find out the right config combination to make it work
The only working combination I’ve found is:
-Add WWW: Make http://example.com/ redirect to http://www.example.com/ (Mandatory for CloudFlare to work)
-Wordpress url: https://example.com
I think the ideal scenario would be:
-Exact URL set to https://www.example.com/ instead of https://example.com/
-Add WWW: Make https://example.com/ redirect to https://www.example.com/ (Mandatory for CloudFlare to work)
-Wordpress url set to https://www.example.com
This way it should work like this:
http://example.com -> https://www.example.com
This way wouldl eliminate that many redirects, but wordpress doesn’t seem to work as well (or sometimes at all) with the www. in the url.
Can anyone help me figure out what’s the best config for running a website in this case??
Thanks a lot for your help!!