Post by openuser » Fri Jul 22, 2011 6:57 am

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

Newbie

Posts

Joined
Fri Jul 22, 2011 6:49 am

Post by Xsecrets » Fri Jul 22, 2011 8:53 am

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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by scanreg » Mon May 14, 2012 2:42 am

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

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by MikeSCC » Sat Feb 23, 2013 1:12 am

Hello,

Was there ever a solution to this?

Thanks,

Mike

Active Member

Posts

Joined
Tue Nov 20, 2012 5:55 pm

Post by sdynak » Fri Mar 01, 2013 5:57 am

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.

New member

Posts

Joined
Wed Jan 02, 2013 8:52 am
Location - Bayville, New Jersey

Post by OpenCart Addons » Fri Mar 01, 2013 12:04 pm

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.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by sdynak » Fri Mar 01, 2013 7:23 pm

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

New member

Posts

Joined
Wed Jan 02, 2013 8:52 am
Location - Bayville, New Jersey

Post by scanreg » Fri Mar 01, 2013 9:40 pm

OpenCart Addons wrote: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.
i didn't find the htaccess stuff in the thread mentioned, would you mind posting it in the current thread?

thanks

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by sdynak » Sat Mar 02, 2013 11:57 pm

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

New member

Posts

Joined
Wed Jan 02, 2013 8:52 am
Location - Bayville, New Jersey

Post by MikeSCC » Tue Mar 05, 2013 12:30 am

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

Active Member

Posts

Joined
Tue Nov 20, 2012 5:55 pm

Post by OpenCart Addons » Fri Jun 28, 2013 11:54 pm

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.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by scanreg » Sat Jun 29, 2013 1:35 am

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

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am
Who is online

Users browsing this forum: Bing [Bot] and 60 guests