My code snippet should work but the assumption is your admins *start* in
https. Once in https, my code snippet below will keep them in https
mode permanently. It's won't work the why you quite described it but it
should keep your admins in https mode. If you want to add another layer
of secu
On Feb 2, 2004, at 9:56 AM, Tony Bibbs wrote:
Assuming you are using a fairly recent version of PHP you could do
this in lib-common.php *after* the include of config.php:
if (stristr($_SERVER["SERVER_PROTOCOL"],'https')) {
$_CONF['site_url'] = 'https://mydomain';
} else {
$_CONF['site_
Assuming you are using a fairly recent version of PHP you could do this
in lib-common.php *after* the include of config.php:
if (stristr($_SERVER["SERVER_PROTOCOL"],'https')) {
$_CONF['site_url'] = 'https://mydomain';
} else {
$_CONF['site_url'] = 'http://mydomain';
}
This assumes that
I am attempting to use SSL to handle any traffic to
http://mydomain/admin.
I am doing this with redirects in my Apache conf file like this:
RedirectMatch admin$ https://mydomain/admin/
RedirectMatch admin(.+)$ https://mydomain/admin$1
(note, mydomain is replaced with a valid domain)
I have su