Magento Forum

How to keep store in ssl mode? 
 
stahl
Jr. Member
 
Total Posts:  3
Joined:  2009-02-10
 

When i enter an unsecure url in https mode the page loads fine.

like:
https://www.domain.com/myproduct.html

But getURL returns unsecure URLs, even when page was loaded via SSL.
So i get back into http mode with the next click.

Is there any way to force magento to return secure urls when page was loaded via ssl?

something like:
$store = Mage::app()->getStore();
if ($store->isCurrentlySecure()) {
Mage::setConfig(’force_secure’, true);
}

???

Steffen

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

You have to set the https - URL as secure and unsecure url in the configuration. Then he always use the https - url. Did this help you?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top