cms made simple https ja SSL admin-kirjautuminen

eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

cms made simple https ja SSL admin-kirjautuminen

Viesti Kirjoittaja eero »

Avaa config.php

Etsi kohta $config['root_url'] = 'http://www.omadomain.fi';

Lisää sen alle:

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}

/******************************************************************
Start support for non-standard ports
*******************************************************************/
if (isset($_SERVER['SERVER_PORT']) && ($_SERVER['SERVER_PORT']!='80' && $_SERVER
['SERVER_PORT']!='443'))
{
$config['root_url'] = $config['root_url'] . ":" . $_SERVER['SERVER_PORT'];
}