http-check
4 years ago in JavaScript
if (window.location.protocol == "http:") {
window.location.replace("https://mydomain.com");
}
1
2
3