WordPress constant redirections may be caused by flexible SSL


A lot of reasons can cause redirections without end. Sometimes it’s enough to clear your cookies, yet the problem usually is more complicated and it regards a web site’s configuration. If you have tried without success to solve this problem, start to think about your security setup. What SSL do you use? Are you in Cloudflare? Is Full SSL mode enabled in Cloudflare, or just the “flexible” one?

Being flexible, means that encryption occurs between Cloudflare and the browser, while Cloudflare itself communicates with your server without encryption. This combination of encrypted and unencrypted data can cause constant redirections, which means that the page you try to open in your WordPress site will never appear. This same combination can also cause 404 or other errors (ERR_CONNECTION_RESET, ERR_TOO_MANY_REDIRECTS, etc.) for instance, when you use pagination in your pages having added nextpage tags. In most cases you are not even able to login to your site and try to fix things.

Don’t lose hope because a solution exists, it is easy, and it does not require the purchase of an SSL certificate, although this of course would also solve your problem, that is, to install an SSL certificate in your server and initiate encryption between your server and Cloudflare.

First of all, you need to edit your wp-config file to add this definition that will grant you access to your WordPress admin pages: define(‘FORCE_SSL_ADMIN’, false); Now that you added this, open your admin pages and install this plugin that will fix communication between your site and your server without the need of purchasing an SSL certificate.

Leave a comment