Created
January 13, 2017 13:12
-
-
Save ml4den/7e5262b74f9cdeb0a690763b334486f2 to your computer and use it in GitHub Desktop.
Automatic HTTPS Redirection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loc = window.location.href+''; | |
if (loc.indexOf('http://')==0){ | |
window.location.href = loc.replace('http://','https://'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit