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.
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.
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.
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’;
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.