cms made simple https ja SSL admin-kirjautuminen
Lähetetty: 03 Syys 2012 04:23
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'];
}
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'];
}