Wordpress login page be Redirect loop

The top page and wordpress login page get a redirect loop and an error occurs.
Other pages can be displayed without any problem.

In Google Chrome,
If you check in verification mode ⇒ network ⇒ preserve_log

Many 302 Status are displayed.

Please tell me the solution.

This is bad advice and keeps the site insecure. The OP seemingly only needs to fix his Cloudflare configuration and choose the proper encryption mode, Full Strict.

1 Like

That link specifically refers to an insecure configuration with is neither the case here nor a good idea.

The OP simply needs to ensure his site is properly configured for SSL and works fine. In that case it will work on Cloudflare as well, regardless of proxy or not.

1 Like

The most common reason for a loop on Cloudflare is an incorrect encryption mode and hence the suggestion to double check that is set to the correct mode Full Strict.

This has been discussed endlessly, so please use the search for further details.

1 Like

What should I do specifically?

What’s your encryption mode on Cloudflare? Make sure that’s Full Strict.

I don’t know “encryption mode on Cloudflare”

What does it say at https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls?

1 Like

This is the last line of wp-config.php.
Should I add it at the end of here?

===========
/ ** Absolute path to the WordPress directory. * /
if (! defined (‘ABSPATH’)) {
define (‘ABSPATH’, DIR.‘/’);
}
/ ** Sets up WordPress vars and included files. * /
require_once ABSPATH.‘wp-settings.php’;

↓ ↓ ↓ ↓

===========
/ ** Absolute path to the WordPress directory. * /
if (! defined (‘ABSPATH’)) {
define (‘ABSPATH’, DIR.‘/’);
}
/ ** Sets up WordPress vars and included files. * /
require_once ABSPATH.‘wp-settings.php’;

define (‘FORCE_SSL_ADMIN’, true);
$ _SERVER [‘HTTPS’] =‘on’;

Don’t do that, you should not tinker with your site setup, leave these things alone.

1 Like


Is this OK?

No, it isn’t. As I already mentioned, change that to Full Strict.

1 Like

Okey,Thank you, boss

Have you changed it?

1 Like

Okey,Thank you, boss,I will try.

I have done.

You should not have any redirection issues any more. Unpause Clouflare and check again, but make sure that you delete any changes you manually made to your files.

1 Like

Great! Great! Ican login.
Thanks. Deep emotion.
Great! Great! Great! Great! Great! Great!