• 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!

    • This topic was modified 8 years, 8 months ago by iAndrew.
    • This topic was modified 8 years, 8 months ago by iAndrew. Reason: Forgot hosting

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Andrew,
    The site seems completely broken. Made any changes?

    Thread Starter iAndrew

    (@iandrew)

    Hello Achyuth!

    No the website’s front end is viewed on learnwpt.com/blog/ – the proxy points users to the URI provided.

    The website you saw is where the admin lives. Even though you saw the website, the real website lives on learnwpt.com/blog/.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Secure WordPress Admin With SSL & Proxy’ is closed to new replies.