If http,

Then go to the href.replace('http', 'https')