LoginSignup
1
2

More than 5 years have passed since last update.

XOOPSにSSLでもhttpでもアクセスできるようにする

Last updated at Posted at 2012-12-26

通常のhttpでもSSLでのアクセスもOKにするためにXOOPS_ROOT_PATH/mainfile.phpの XOOPS_URL を編集します。

下記の様な感じ。

if(isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')){
    $protocol='https://';
}else{
    $protocol='http://';
}
define('XOOPS_URL', $protocol . 'example.com');
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2