Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Using HTTPS for just the e-commerce section (and log-on pages)

Go to End

3 Posts   1954 Views


Community Member, 141 Posts

18 February 2009 at 4:18pm

Is there a way to use HTTPS for just the e-commerce pages? I've already seen old discussions on this, including this one, but it seems inconclusive. It looks like you can use Director::forceSSL() to switch to HTTPS, but that there is no method to switch back to HTTP for pages that don't need a secure connection.


Community Member, 54 Posts

4 March 2009 at 2:54pm

Edited: 04/03/2009 2:55pm

what about make a Director::Redirect('https://'.$Link) or something? to use https only in the payment page?


Community Member, 48 Posts

14 July 2009 at 11:12am

Hi dospuntocero,

How would I do that exactly? something along the lines of:

if($_SERVER["SERVER_PORT"] == 443) {

I only want the checkout page to be secure. But if the user visits the home page again I want that to go back to non-secure.