:::
XOOPS輕鬆架快速上手
主內容區域
關於網站SSL問題
記得將主機的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');
