Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created January 10, 2019 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/ad69aef9d61e869b2fb7dd94e1471b7c to your computer and use it in GitHub Desktop.
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).
<!-- 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