Replies: 0
Greetings WordPress Support!
Here’s the scope:
I have a customer who’s WordPress website lives on http://learnwpt.mtwpsandbox.com/ and a proxy (CloudFlare) implemented so that the learnwpt.com/blog/ displays the blog. The learnwpt.com/blog/ is hosted with GoDaddy and the http://learnwpt.mtwpsandbox.com/ is hosted on SiteGround.
I am looking to securing the back end with a SSL certificate all without breaking the learnwpt.com/blog/ and the WordPress back end.
I am aware of the Reverse Proxy codex article that informs me to place the proxy code on the functions.php page.
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') !== false)
$_SERVER['HTTPS']='on';
Looking to implement the solution efficiently and effectively.
Thank you in advance!