I would like some help on an item if possible. I currently

Hi,

I would like some help on an item if possible. I currently activated domain mapping on a network, using the plugin.

I would like however that the pages that come through HTTPS, to fall back to a sub-domain.

So if request the site it will go to http://domain.com, but if I go to the domain secure page, it will go to https://domain.mynetwork.com/secure-page.

I actually saw a similar post on the forums, but this does not seem to solve my issue.

https://premium.wpmudev.org/forums/topic/overriding-domain-mapping-only-on-sslsecure-pages

I did the following
if($_SERVER['HTTPS']!='on'){
define( 'SUNRISE', 'on' );
}

but this just causes the site go to a redirect loop when trying to access https