Latest Blog Posts

Editing the OpenCart Homepage
29.09.2025 2665 3 44 min

Editing the OpenCart homepage, customizing H1 and Title text, displaying products and modu..

How to Uninstall Powered by OpenCart
03.09.2025 4134 3 20 min

Remove Powered by OpenCart and customize footer: edit template, use theme editor or OCMOD ..

How to remove modules in OpenCart
28.08.2025 2113 3 12 min

Step-by-step instructions for deleting modules in OpenCart 3 via the admin panel, manually..

Which hosting to choose for OpenCart
25.08.2025 1432 3 19 min

Find out which hosting to choose for an OpenCart online store. Requirements, selection cri..

OpenCart SSL: How to load all pages using HTTPS

2110 0 2 min
OpenCart SSL: How to load all pages using HTTPS

You have enabled SSL certificate for your OpenCart site but it disappears from some pages?

Apache Server
This guide is relevant if your OpenCart runs on an Apache server.

Here's what you can do to ensure the security of every page of your online store and keep your online shoppers safe while browsing your site.

First, in the store settings, in the "Server" tab, next to the "Use SSL" field, set the value to YES and save the settings.

Step 1

Use your favorite FTP client or file manager in cPanel and edit the .htaccess file.

Step 2

Copy and paste these 3 lines of code into your.htaccess file:

 RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Save and close!

Step 3

Edit your config.php file in the root of OpenCart (located under the.htaccess file in the screenshot above).

Below the line

 // HTTPS

Change the protocol from http to https.

Save and close!

Step 4

Repeat the same for the config.php file in the admin folder.

Open config.php and again, under

 // HTTPS

Change both http protocols to https.

Save and close!

Congratulations!

Now return to your OpenCart website and view all pages. You'll see that the SSL certificate is active sitewide, keeping every page secure. Customers will now feel secure browsing and shopping in your OpenCart store.

ChatGPT Consultant

Comments

Leave your comment or question

Write Comment

Popular