1. PHP 原生方法
$_SERVER['REQUEST_SCHEME']
2. Magento 的方法
$isSecure = Mage::app()->getStore()->isCurrentlySecure();
($isSecure) ? 'https' : 'http' ;
http://stackoverflow.com/questions/3457987/can-i-check-for-https-in-magento-phtml-files
1. PHP 原生方法
$_SERVER['REQUEST_SCHEME']
2. Magento 的方法
$isSecure = Mage::app()->getStore()->isCurrentlySecure();
($isSecure) ? 'https' : 'http' ;
http://stackoverflow.com/questions/3457987/can-i-check-for-https-in-magento-phtml-files