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.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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)
what about make a Director::Redirect('https://'.$Link) or something? to use https only in the payment page?
Hi dospuntocero,
How would I do that exactly? something along the lines of:
if($_SERVER["SERVER_PORT"] == 443) {
Director::Redirect('https://'.$Link)
}
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.
Cheers,
Barry.