KYKLO_JS_000002 - Client-side HTTP to HTTPS redirection - Javascript Snippet

Purpose: Some DNS does not provide functionalities to enforce HTTPS. Client side script will help on the redirection from HTTP to HTTPS

Thanks to Lakeland Engineering for this reference document: http://www.networksolutions.com/support/ssl-redirects/

To enable client HTTP to HTTPS redirection, please copied code below to Javascript snippet area. Update https://subdomain.yourdomain.com portion to customer domain name.

  
<script language="javascript">
if (document.location.protocol != "https:")
{
	document.location.href = "https://subdomain.yourdomain.com" + document.location.pathname;
};
</script>