How to Install OpenCart SSL Certificate?

How to Install OpenCart SSL Certificate?

Firstly, let's briefly explain to those who do not know OpenCart. OpenCart is ecommerce software built on open source PHP. Because it is open source, it allows OpenCart software to be developed with the knowledge of everybody. There are many e-commerce sites that use OpenCart because it is easy to use and develop.

An SSL certificate is an essential feature for e-commerce sites. Because in e-commerce sites, customers enter sensitive data such as credit cards. This data must be transferred safely and protected and for this you need to use SSL certificate. You can learn more about the SSL certificate from our What is an SSL Certificate? Why Use SSL? article.

Purchase SSL Certificate

Firstly you need to purchase an SSL Certificate and this certificate needs to be installed on your server. You may have information about the installation steps from our How to Install an SSL Certificate? article. If you have purchased one of our SSL certificate products, we have free installation support if you request.

OpenCart SSL Settings

After completing the SSL certificate installation, log in to the OpenCart admin panel and activate the Use SSL option under the Security heading under the System->Settings->Store Edit Button->Server tab.

After this setting, we will complete the SSL setup after changing the config.php and admin/config.php files in the main directory where OpenCart software is installed.

Open and Find in config.php file.

define('HTTPS_SERVER', '');

Replace with the following.

define('HTTPS_SERVER', '');

In the same way, open admin/config.php and find the following code.

define('HTTPS_SERVER', '');
define('HTTPS_CATALOG', '');

Replace with the following.

define('HTTPS_SERVER', '');
define('HTTPS_CATALOG', '');

Making All Links SSL

After the above steps, the SSL certificate will be activated on the pages where customer data is entered, such as payment, registration etc. on your e-commerce site. However, if you want to use SSL for all your links on your site, replace all of your addresses beginning with http:// with https:// in the above files.

Https Redirect

As a final step, find the RewriteBase / code in your .htaccess file and add the following code.

RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If you are not using your site address with www prefix, make following change in above code.

RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If %{HTTP_HOST}%{REQUEST_URI} in the above code doesn't work, you can write your site address instead. For example, as follows.

RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .*{REQUEST_URI} [L,R=301]

After all these changes, all links on our site will work as https.

You can purchase from our SSL Certificates products for secure e-commerce and benefit from our OpenCart free SSL setup support.

13 people voted before. Would you like to vote?

  • 18/11/2018
  • 501

Apple Safari, HTTP Web Sites Not Secure Warning Test Started

Apple will display a more evident warning message on websites that use the HTTP protocol in the Safari browser as Google does in the Chrome browser...

  • 06/11/2018
  • 340

Comodo CA is Now Sectigo - Comodo CA Rebrands as Sectigo

The world leader in Certification Authority and web security solutions, Comodo CA rebrand name was changed to Sectigo. Comodo CA, was this change that..

  • 28/11/2018
  • 557

cURL in Thousands of Plugins SSL TLS Certificate Verification is Disabled!

Libraries, framework or plugins, it can give us time and functionality. Well Security? cURL certificate validation settings used in thousands of CMS p..

  • 25/08/2017
  • 642

Google Chrome, Non-SSL Websites Not Secure Warning!

SSL has begun to be considered as a factor for SEO with the updates made last year. Also, web sites that do not use SSL encounter unsafe warning in th..

  • 31/05/2017
  • 972

How to Install an SSL Certificate?

Although SSL certificate installation differs according to the server type and control panel used, the installation steps are almost identical. Requi..

  • 21/08/2017
  • 1.16K

How to Install WordPress SSL Certificate?

WordPress SSL certificate install is one of the most complicated software among popular software. In addition to being difficult to switch, Do I lose..

  • 13/10/2018
  • 279

New Chrome 70th Update Will Cause Security Warning on Thousands of Websites

Chrome 70th will begin issuing security warning on Symantec SSL Legacy certificates. Google, as mentioned in Google Chrome, Non-SSL Websites Not Secur..

  • 12/07/2017
  • 21.36K

OpenCart Turkish Full Version

The latest version of OpenCart was released on 18.07.2017 with version number As of 22.07.2017 we also offer Turkish version for you. Now le..

  • 14/01/2019
  • 5.32K

OpenCart Turkish Full Version

The latest version of OpenCart was released on 09.04.2019 and as of 29.01.2019 we also offer OpenCart Turkish version for you. 3.0.3...

Sectigo PositiveSSL Certificate

Sectigo PositiveSSL, 128 bit SSL Certificates are designed for encrypting web sites for low volume online transactions. Trusted by over 99.9% of curre..

OpenCart Improved Attributes

OpenCart Improved Attributes, provide a better experience by adding new settings to the default properties. By assigning feature groups to different p..

Extreme Web Hosting

Extreme web hosting package is a unlimited of disk space, traffic, etc features. Featuring unlimited features, extreme web hosting package is an ideal..

Sectigo PositiveSSL EV Certificate

The PositiveSSL EV is a revolutionary product in that it expands access to Extended Validation SSL. In the past EV SSL was viewed more as a luxury for..

RapidSSL Certificate

RapidSSL is the fastest and most cost-effective solution for entry-level e-commerce sites, web-based e-mail, and any other application that requires s..

Symantec Secure Site Pro with EV

If you truly want to invest in the trust, credibility, and assurance of your website, there is no better option than the Symantec Secure Site Pro w/ E..

Thawte SSL123 Certificate

Thawte SSL123 is one of the fastest and most economical solutions for applications such as e-commerce sites, web-based e-mail that require a site secu..