Try the Demo

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
Guru
 
Avatar
Total Posts:  563
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?

 Signature 

Magento Freelancer.

Need an extension? Feel free to contact me!

Web: http://www.sig-tec.de
E-Mail:
Skype: sig-tec
Xing: https://www.xing.com/profile/Siegfried_Schmitz2
Profil auf freelance.de
Profil auf freelancermap.de

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