I’ve appended something similar to the following to my config.php file:
if ($_SERVER['SERVER_PORT']!=443) {
$conf['site_url'] = "http://myurl.com/";
} else {
$conf['site_url'] = "https://myurl.com/";
}Everything seems to function correctly now when I switch between http and https access to my site and I don’t get any more mixed nags when I use the {site_url} token in my templates on https access.
I’m wondering if there is any downside to this solution - other than not being able to set the site_url in the control panel?
Thanks,
Hal