:::
XOOPS輕鬆架快速上手

請問一下設定SSL 但是登出功能無法正常登出?

discuss pic 2019-04-01 17:19:41

請問一下設定SSL 但是登出功能無法正常登出?

請老師指導要修改那些檔案呢?

discuss pic 2019-04-01 17:21:02
tad

一般來說不需要改什麼阿...

discuss pic 2019-04-01 17:28:54

但是我試了很多次都無法登出!

SSL需要修改那些檔案呢?

 

因為我是用CPANEL後台

discuss pic 2019-04-01 17:41:25
tad

最多就是改mainfile.php(如果不是輕鬆架的話)

其餘不用改

discuss pic 2019-04-01 17:56:23

請問老師

mainfile.php 這支檔案內容要修改那些部分呢?

 

才能正常登出和登入呢?

discuss pic 2019-07-19 00:31:44

應該是改 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');
 

 

:::

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D6118%26BoardID%3D34%26g2p%3D1

計數器

今天: 3577357735773577
昨天: 3438343834383438
總計: 7393906739390673939067393906739390673939067393906