Magento SSL links


I've configured magento to use SSL links..

Base URL
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([...])

// link to CMS page
echo Mage::getUrl('help'); //->
// link to customer account
echo Mage::getUrl('customer/account'); //-> httpS://

Why is there a difference in protocol?

// Roland

9/11/2009 3:12:21 PM

Accepted Answer

In app/code/core/Mage/Customer/etc/config.xml there's an entry for frontend/secure_url for /customer.

This will help

6/30/2016 5:39:22 AM

I had an issue with https in my custom module; my work around was like this:

$loadFromSSL = $_SERVER['SERVER_PORT']==443?true:false;

Mage::getUrl('', array('_secure'=>$loadFromSSL))

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow