我有一個網站在php.and是SSL保護 當我嘗試與http://它工作正常
但當我訪問它與https://其UI用戶界面。用戶界面使用https後獲得休息
我使用此代碼
if (isset($_SERVER['HTTPS']) &&
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$protocol = 'https';
}
else {
$protocol = 'http';
}
請讓我知道這個問題。
在此先感謝。
是什麼「UI獲得突破」的意思?你能詳細說明嗎? – 2015-02-06 15:07:52