Page 1 of 1

SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 4:00 am
by PinkApe404
Hey all, so was wondering how to change the site url to be https:// instead of http:// in the softaculous install as we had an ssl installed.

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 5:05 am
by Dhaupin
You goto store settings and click the box under the "server" tab. This should enable SSL on account, checkout, etc. If you need, you can hit the configs too, and the htaccess as well if you want https on literally every page http://forum.opencart.com/viewtopic.php?f=20&t=126070

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 5:17 am
by PinkApe404
Dhaupin wrote:If you need, you can hit the configs too,
Where would I do this?

also I had my OC installed to the URL http://www.mydomain.com

should I change the install to https://www.mydomain.com

lastly, I keep getting an error on the SSL saying that there is a name mismatch - something having to do with the ssl issued to www.mydomain.com and me using mydomain.com. Also when I cut or delete the https:// par in the address it allows me to access my site without any https.

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 6:14 am
by victorj
do you want your entire site to run under ssl or just the account and checkout pages

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 6:32 am
by PinkApe404
victorj wrote:do you want your entire site to run under ssl or just the account and checkout pages
it is an E-Commerce site. My perception of a good site is when the home page is secure, followed by the most important pages ( account, checkout).

I am having a small other issue - that is with the redirects. No clue how to tackle that one because I was able to access two versions of my store simply by cutting out the https:// part from the address bar and the browser had no problem opening an unsecured version of an otherwise secure page;

https://www.productbeast.com

I have this gut feeling the site is not 100% - I may be over thinking it.

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 12:19 pm
by ocaddons
@PinkApe404

Enable SSL in the OpenCart Dashboard

-- You have to Log into Dashboard of OpenCart.
-- Go to System and click on Settings.
-- Click on the Server tab.
-- Check box the radio button for SSL.

Enable SSL in the OpenCart Directory config.php File

-- Open control panel and log into it, then go to File Manager.
-- Navigate to OpenCart installation directory.
-- Open the configuration file (config.php) and look for the below lines appeared as HTTPS:

Code: Select all

define('HTTPS_SERVER', 'http://www.yourdomain.com/');
Edit the HTTPS settings in the file for SSL URL path. Just add- ā€œSā€ to HTTP:// to turn it HTTPS:// and click on Save changes.

Code: Select all

define('HTTPS_SERVER', 'https://www.yourssldomain.com/');
Enable SSL in the OpenCart Admin Folder config.php File

-- Browse Admin folder and open the configuration file.
-- Look for the below lines appeared as HTTPS:

Code: Select all

define('HTTPS_SERVER', 'http://www.yourdomain.com/admin/');
define('HTTPS_CATALOG', 'http://www.yourdomain.com/');
Last, again edit the HTTPS settings in the file for SSL URL path. Just add- ā€œSā€ to HTTP:// to turn it HTTPS://.

Code: Select all

define('HTTPS_SERVER', 'http://www.yourssldomain.com/admin/');
define('HTTPS_CATALOG', 'http://www.yourssldomain.com/');

Re: SSL Issue - Http to Https change

Posted: Wed Jun 04, 2014 10:32 pm
by platypuspuzzles
Great instructions ocaddons

But the last code box needs to have the s added to the httpS;//www.yourssldomain.com/admin/