if(location.href.startsWith("http://")){location.href = "https://"+location.href.replace("http://", "")}

ㅇㅇ