Tutorial Redirect to SSL
window.location = "https://" + window.location.hostname + window.location.pathname + window.location.search; You might wanna test ...
https://iskablogs.blogspot.com/2014/03/tutorial-redirect-to-ssl.html
window.location = "https://" + window.location.hostname + window.location.pathname + window.location.search;
You might wanna test if window.location.href doesn't start with "https" before doing that, so you don't redirect unless you have to.
You might wanna test if window.location.href doesn't start with "https" before doing that, so you don't redirect unless you have to.