主機的SSL安裝好後,xoops部分還要修改 mainfile.php 檔案內的"紅字部分"就能讓網站完整支援SSL
// URL Association for SSL and Protocol Compatibility
$http = 'http://';
if (!empty($_SERVER['HTTPS'])) {
$http = ($_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://';
}
define('XOOPS_PROT', $https);
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://kfking.org');
define('XOOPS_URL', 'https://kfking.org');