Forcing a specific page to use HTTPS with angularjs
snippet in htaccess

Forcing a specific page to use HTTPS with angularjs

user1803

var forceSSL = function () {
    if ($location.protocol() !== 'https') {
        $window.location.href = $location.absUrl().replace('http', 'https');
    }
};
forceSSL();