Page 1 of 1
Force SSL on Checkout, Account and Admin pages
Posted: Fri Jul 22, 2011 6:57 am
by openuser
Hi all,
I need to be able to force SSL on my sensitive information pages like Checkout, Account and Admin pages. I already have SSL working fine in my cart and admin pages but want to be able to make them only use SSL. For example if I go directly to
http://www.mysite.com/checkout then I can checkout without using https (SSL) and I am not redirected back to the https version. Would be great if this was a feature in an upcoming release.
Thanks!
Using version 1.5.1
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Jul 22, 2011 8:53 am
by Xsecrets
so you want to save a customer who works very hard at giving away sensitive information from being able to do so? I don't really see the big deal. There is no legitimate way to get to those pages in an unsecure manner, so if someone wants to type it in and send their information unsecured let them.
but if you are that worried about it. It should not be too hard to create a .htaccess rule to redirect to ssl.
Re: Force SSL on Checkout, Account and Admin pages
Posted: Mon May 14, 2012 2:42 am
by scanreg
Xsecrets wrote:It should not be too hard to create a .htaccess rule to redirect to ssl.
Would be great if all of the checkout pages, account pages, including viewcart could all redirect to ssl
How should the .htaccess be written for this?
Is there a way to make this work with SEF Urls as well?
Does the following .htaccess code from another thread help?
Code: Select all
#Force https redirect
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(checkout|account|admin) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} !=off
http://forum.opencart.com/viewtopic.php?t=58025
Thanks
Re: Force SSL on Checkout, Account and Admin pages
Posted: Sat Feb 23, 2013 1:12 am
by MikeSCC
Hello,
Was there ever a solution to this?
Thanks,
Mike
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Mar 01, 2013 5:57 am
by sdynak
Same here.. not happening on its own and not all the time.. cart will not go into checkout.. seems to be SSL/Host related but not getting anywhere with them at the moment.
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Mar 01, 2013 12:04 pm
by OpenCart Addons
Check this thread. There is a .htaccess script posted in there that will force SSL on account, checkout and admin pages.
http://forum.opencart.com/viewtopic.php?t=4336
Regards,
Joel.
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Mar 01, 2013 7:23 pm
by sdynak
Thanks Joel..
Had tried some of the hta mods but didn't work.. had to put the whole site into SSL just to get around it for now while I transfer to a real host provider. I am sure that will resolve it as well as many other issues I had. Sometimes the cheapest isn't always the best and when it comes to sales can't afford to take chances anymore. I do believe there is something with the server config or SSL but they just say they look ok.
Cheers,
Stan
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Mar 01, 2013 9:40 pm
by scanreg
i didn't find the htaccess stuff in the thread mentioned, would you mind posting it in the current thread?
thanks
Re: Force SSL on Checkout, Account and Admin pages
Posted: Sat Mar 02, 2013 11:57 pm
by sdynak
Check this post & host thread.. do yourself a favor if you are having these issues or any issues in general with speed and your current host and make the change ASAP for your benefit.
http://forum.opencart.com/viewtopic.php ... 24#p386924
http://www.wxhosting.com
Re: Force SSL on Checkout, Account and Admin pages
Posted: Tue Mar 05, 2013 12:30 am
by MikeSCC
In the end I used this extension which I already has installed to redirect the pages I wanted from 'http'' to 'https':
http://www.opencart.com/index.php?route ... on_id=5388
Re: Force SSL on Checkout, Account and Admin pages
Posted: Fri Jun 28, 2013 11:54 pm
by OpenCart Addons
Sorry for the late response. Here's what I have inserted into my .htaccess file:
Code: Select all
#Force https redirect
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(checkout|account|admin) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} !=off
Regards,
Joel.
Re: Force SSL on Checkout, Account and Admin pages
Posted: Sat Jun 29, 2013 1:35 am
by scanreg
thanks, will give it a go
btw, think this could be extended to force ssl for a particular product (but not all):
http://demo.opencart.com/index.php?rout ... duct_id=49
thanks