SyntaxFix
Write A Post
Hire A Developer
Questions
I like the answers for this question. But to be creative, I would like to share one more way:
<script>if (document.URL.substring(0,5) == "http:") window.location.replace('https:' + document.URL.substring(5));</script>