Created
May 3, 2018 21:56
-
-
Save discarn8/fec8ae0c814760c5d696e6a14f83d9bd to your computer and use it in GitHub Desktop.
js_HTTP_Redirect
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
| <!-- beginning of HttpRedirect.htm file --> | |
| <script type="text/javascript"> | |
| function redirectToHttps() | |
| { | |
| var httpURL = window.location.hostname+window.location.pathname; | |
| var httpsURL = "https://" + httpURL ; | |
| window.location = httpsURL ; | |
| } | |
| redirectToHttps(); | |
| </script> | |
| <!-- end of HttpRedirect.htm file --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment