After installing SSL certificate, we need to configure the opencart in three things
1. Config.php
2. Admin setting
2. Admin Side:
We need to change the some configuration in admin side:
1. Config.php
2. Admin setting
3. Htaccess
1. Config.php File:
The config file is in two location.
1. In domain root
We need to change the following line:
define('HTTPS_SERVER', 'http://example.com/');
Changed To
define('HTTPS_SERVER', 'https://example.com/');
2. admin folder
We need to change the following line:
define('HTTPS_SERVER', 'http://example.com/admin/');
define('HTTPS_CATALOG', 'http://example.com/');
Changed to:
define('HTTPS_SERVER', 'https://example.com/admin/');
define('HTTPS_CATALOG', 'https://example.com/');
2. Admin Side:
We need to change the some configuration in admin side:
- After login to the Opencart admin panel
- Goto the System -> Setting-> Server Tab
- In Security Secetion
- We need to change Use SSL to Yes
- Click to Save Button
3. HTACCESS File:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Comments
Post a Comment