Site keep redirecting from https to http

I've created this site: here4event.jagole.com (under domain name here4event.com), which is added using the "Add New Site" page in wp-admin.

For some reason, this is the only subsite with this issue.

At first it gave too many redirection. Turning off "Really Simple SSL" solved part of the problem.

This however causes some of the backend functions in wp-admin to kick you back to login page, like customize theme.

I tried to add this:

if ( (isset($_SERVER['HTTP_X_FORWARDED_PORT'] ) && ( '443' == $_SERVER['HTTP_X_FORWARDED_PORT'] ))

|| (isset($_SERVER['HTTP_CF_VISITOR']) && $_SERVER['HTTP_CF_VISITOR'] == '{"scheme":"https"}':wink:) {

$_SERVER['HTTPS'] = 'on';

and this:

define('FORCE_SSL_ADMIN', true);

// in some setups HTTP_X_FORWARDED_PROTO might contain

// a comma-separated list e.g. http,https

// so check for https existence

if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https':wink: !== false)

$_SERVER['HTTPS']='on';

to wp-config but it doesn't seems to solve the issue.