I have installed my store and have it set to use SSL - however apparently it is not set correctly in whatever file controls that. It only shows error which says, "can not find host http:// "
Can someone please tell me which file to modify to correct this?
Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
[SOLVED] Help with SSL link not working
Started by m3media, Mar 21 2010 10:30 PM
[SOLVED] Help with SSL link not working
#1
Posted 21 March 2010 - 10:30 PM
#2
Posted 22 March 2010 - 12:13 AM
Topics merged and moved
#3
Posted 22 March 2010 - 01:51 AM
Since no one seemed to know how to actually correct this issue I finally sorted it out myself and thought I would share.
In version 1.4.4 it seems that enabling SSL in Admin area does not typically work smoothly without doing some manual edits to the index.php file.
The lines as follows need to be edited by taking the 0, out of it.:
if ($config->get('config_ssl')) {
define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 0, 7));
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');
} else {
define('HTTPS_SERVER', HTTP_SERVER);
define('HTTPS_IMAGE', HTTP_IMAGE);
So your corrected file should look like this:
if ($config->get('config_ssl')) {
define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 7));
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');
} else {
define('HTTPS_SERVER', HTTP_SERVER);
define('HTTPS_IMAGE', HTTP_IMAGE);
Once this was done my SSL links worked perfectly.
In version 1.4.4 it seems that enabling SSL in Admin area does not typically work smoothly without doing some manual edits to the index.php file.
The lines as follows need to be edited by taking the 0, out of it.:
if ($config->get('config_ssl')) {
define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 0, 7));
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');
} else {
define('HTTPS_SERVER', HTTP_SERVER);
define('HTTPS_IMAGE', HTTP_IMAGE);
So your corrected file should look like this:
if ($config->get('config_ssl')) {
define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 7));
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');
} else {
define('HTTPS_SERVER', HTTP_SERVER);
define('HTTPS_IMAGE', HTTP_IMAGE);
Once this was done my SSL links worked perfectly.
#4
Posted 23 April 2010 - 03:09 PM
Thanks for this info m3media. I am glad someone is posting their solutions to the problem of getting ssl to work on prestashop. Quick question. My index.php file doesn't contain any of the code above. Can you tell me specifically which index file this is and where it is located.
Thanks.
Thanks.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











