我已经配置了magento以使用SSL链接。
Base URL https://sub.domain.com/ Base Link URL {{secure_base_url}} Base ... URL {{secure_base_url}}.../ Use Secure URLs in Frontend: YES Use Secure URLs in Backend: YES
Frontend i have some custom links built with Mage::getUrl([...])
<?php
// link to CMS page
echo Mage::getUrl('help'); //-> http://sub.domain.com/help/
// link to customer account
echo Mage::getUrl('customer/account'); //-> httpS://sub.domain.com/customer/account/
?>
为什么协议有所不同?
//罗兰
最佳答案
在app/code/core/Mage/Customer/etc/config.xml
中,有一个frontend/secure_url
条目,表示/customer
。
这会有所帮助
关于php - Magento SSL链接,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1411531/