Enable SSL for OpenCart


For enabling the SSL option in OpenCart, you may need to amend two config files. One of them will be located in sites root folder ‘/home/$user/public_html/config.php’ and the other config.php file is in /admin.

♦  In /home/$user/public_html/config.php

define(‘HTTPS_SERVER’, ‘https://www.example.com/‘);
define(‘HTTPS_IMAGE’, ‘https://www.example.com/image/‘);

♦ In /home/$user/public_html/admin/config.php

define('HTTPS_SERVER', 'https://www.example.com/admin/');
define('HTTPS_CATALOG', 'https://www.example.com/');
define('HTTPS_IMAGE', 'https://www.example.com/image/');

♦  Log into your OpenCart site’s admin area.

♦ Go to “System -> Settings tab”.

♦ Click on ‘Edit’ button in setting tab.

♦ Open the “server” section.

♦ Change the “Use SSL” radio button to “Yes” and click on the save link



There are no revisions for this post.

Tags: ,

No comments yet.

Leave a Reply