Created
January 10, 2019 20:01
-
-
Save salsalabs/ad69aef9d61e869b2fb7dd94e1471b7c to your computer and use it in GitHub Desktop.
Script to redirect non-secure signup page URLs to the secure version. Install this script just after the <head> tag in your template(s).
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
<!-- BEGIN redirect non-secure signup pages to secure URLs. --> | |
<script type="text/javascript"> | |
if (window.location.href.indexOf('signup?signup_page_KEY=') != -1) { | |
if (window.location.protocol == 'http:') { | |
window.location.protocol = 'https:'; | |
} | |
} | |
</script> | |
<!-- END redirect non-secure signup pages to secure URLs. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment