Use this code to get Secure Url in Magento:
<?php echo $this->getUrl("module/controller/method", array("_secure"=>$_SERVER["HTTPS"]==="on"))?>
and for Skin :
<?php echo $this->getSkinUrl("images/search.gif" , array("_secure"=>$_SERVER["HTTPS"]==="on"))?>
<?php echo $this->getUrl("module/controller/method", array("_secure"=>$_SERVER["HTTPS"]==="on"))?>
and for Skin :
<?php echo $this->getSkinUrl("images/search.gif" , array("_secure"=>$_SERVER["HTTPS"]==="on"))?>
2 comments:
Working for me..
Thanks for appreciation :)
Post a Comment