/ Published in: JavaScript
Redirect to SSL script
Expand |
Embed | Plain Text
function redirectSecure() { if (document.location.protocol != “https:”){ var oldURL = window.location.hostname + window.location.pathname+window.location.search; var newURL = “https://” + oldURL; window.location = newURL; } } redirectSecure();
You need to login to post a comment.
