Page 1 of 1

SSL Admin Problems

Posted: Wed Oct 10, 2007 9:43 am
by jimbabwe
I'm trying to get ssl working for the admin section with shared ssl (networksolutions).

It looks like the current 1.1.3.1 Apia has this built into the config.php
After readinng http://forum.cmsmadesimple.org/index.ph ... 475.0.html, I altered the config.php as per below:

$config['root_url'] = 'http://www.mysite.com/cmsmadesimple';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = 'https://secure.netsolhost.com/mysite.com/cmsmadesimple';
}

When I browse to: 'https://secure.netsolhost.com/mysite.co ... mple/admin', I get forwarded to a non-https connection.

This is probably something simple; sorry if I'm missing it.

Any pointers are welcome.

I've also tried the f ($_SERVER['SERVER_PORT'] == '443') option discussed here: http://forum.cmsmadesimple.org/index.ph ... 360.0.html

Thanks in Advance.