Base de connaissances
How to run SSL in the OpenCart? Imprimer cet article
In order to activate a secure connection to the website based on OpenCart, make the changes to the file includes/configure.php.
Use a text editor (e.g. Notepad) to change the value of the parameters:
- HTTPS_SERVER
- HTTPS_IMAGE
from http:// to https:/
<?php
define('HTTPS_SERVER', 'https://www.sslguru.com');
define('HTTPS_IMAGE', 'https://www.sslguru.com/image/');
?>
In order to activate a secure connection to the admin panel, make the changes to the file admin/config.php.
Use a text editor (e.g. Notepad) to change the value of the parameters:
- HTTP_SERVER
- HTTP_CATALOG
- HTTP_IMAGE
- HTTPS_SERVER
- HTTPS_IMAGE
from http:// to https://
<?php
// HTTP
define('HTTP_SERVER', 'https://www.sslguru.com/admin/');
define('HTTP_CATALOG', 'https://www.sslguru.com');
define('HTTP_IMAGE', 'https://www.sslguru.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.sslguru.com/admin/');
define('HTTPS_IMAGE', 'https://www.sslguru.com/image/');
?>
Cette réponse était-elle pertinente?
Articles connexes
SSL installation depends on the type of server you are securing. Please select below the server...
Installing SSL certificate on Apache with mod_ssl To install certificate you need 2...
Log in to admin server as a root. Create a folder /etc/httpd/ssl.crt/ (if it does not exist)....
Installing SSL certificate on Barracuda VPN serverImport CertificatesFrom the appliance web...
Note: If the domain/site certificate is created using CA certificate, you need to repeat steps...