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.














































Comments