Cannot Login on Wordpress After installing Cloudflare SSL - Solution

wordpress

#1

I assume that some of the members of the Cloudflare community are still having a problem when installing Cloudflare SSL. The general issue we encounter is we cannot log in with WordPress or it won’t respond.

The simplest way that I found how to fix it is to insert the code below on wp-config.php

if (_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') _SERVER[‘HTTPS’]=‘on’;

this should be installed above:/* That’s all, stop editing! Happy blogging. */

I hope this will help your issues regarding this matter.


#2

There are several ways to fix this.
I don’t use WP anymore, but I changed the page links in the WP database. I don’t remember the table but it worked as well.


#3

Does that change all of the WP site’s internal links?


#4

Not at all. It has no effect on your current website. It’s like that code will indicate on wp that your site is now SSL certified.


#5

So you don’t have to change the website setting in the wp admin? What a headache saver!


#6

No need, just to input the code as per instructed…


SLL showing an error message
Issue getting flexible SSL on Wordpress Site