public static function redirectToHttps()
    {
        if (ProxyHttp::isHttps()) {
            return;
        }
        $url = self::getCurrentUrl();
        $url = str_replace("http://", "https://", $url);
        self::redirectToUrl($url);
    }
public static function redirectToHttps()
    {
        if (ProxyHttp::isHttps()) {
            return;
        }
        $url = self::getCurrentUrl();
        $url = str_replace("http://", "https://", $url);
        self::redirectToUrl($url);
    }
public static function redirectToHttps ( ) { if ( ProxyHttp :: isHttps ( ) ) { return ; } $ url = self :: getCurrentUrl ( ) ; $ url = str_replace ( "http://" , "https://" , $ url ) ; self :: redirectToUrl ( $ url ) ; }
If the page is using HTTP, redirect to the same page over HTTPS
If the page is using HTTP redirect to the same page over HTTPS