HTTPS redirect for merchant or affiliate panel

If you want to redirect your merchant/affiliate panel or signup page to HTTPS, you can do it by adding javascript redirect into your template file: module_body.stpl
 
In Merchant Panel > Configuration > Design > Merchant panel theme/Affiliate panel theme/Signup page theme > Edit theme > search file 'index.stpl'
 
add this code right to the first line:
 
{literal}
<script language="javascript" type="text/javascript">
if (window.location.protocol !== 'https:') {
    window.location = 'https://' + window.location.hostname + window.location.pathname + window.location.hash;
}
</script>
{/literal}
 
Note: for Signup page theme redirection you need to add the same code also to static_page_includes.stpl template of your Signup page theme. It will then fix the redirection also for the static pages like the index page or FAQ page.

 

 
×