In your Views/templates open the Main.php file and add this script to the top:
Then on your BODY Tag, Change it like this:
<script type="text/javascript">
//<![CDATA[
function RedirNonHttps() {
if (location.href.indexOf("https://") == -1) {
location.href = location.href.replace("http://", "https://");
}
}
//]]>
</script>
There you go, Now all traffic will be redirected to use SSL!
< body onload="RedirNonHttps();" >
No comments:
Post a Comment