Jump to content

SSL problems - Page doesn't load


Recommended Posts

Hi,

 

 

I'm having troubles configuring the SSL for prestashop. Everytime I put SSL working, the page doesn't open... I've read a few topics for a few tweaks.. and I got nothing in concrete..

 

I've tried .htacess edits,

 

RewriteCond %{HTTP_HOST} ^loja\.(.*)

RewriteRule ^(.*)$ http://loja.%{HTTP_HOST}/$1 [R=301,L]

 

Still not working...

 

Also made sure to have SSL working in apache module as

 

SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "CDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:​RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5"

 

I even tried editing the /classes/Tools.php

 

  public static function getShopDomain($http = false, $entities = false)
        {
                if (!$domain = ShopUrl::getMainShopDomain())
                        $domain = Tools::getHttpHost();
                if ($entities)
                        $domain = htmlspecialchars($domain, ENT_COMPAT, 'UTF-8');
                if ($http)

                      
                return $domain;
        }

 

And still doesn't work...

 

Also followed Robert.Glez quote:

 

1. Enable SSL in Settings > General.

With this we will be able to go through ssl for cart, order, authentication, account, payment, etc. pages. But of course not for the rest of pages (index, categories, products, etc.)

 

2. Edit /classes/controller/FrontController.php by changing

public $ssl = false;

to

public $ssl = true;

With that you will be able to go through https for most of your shop, however category and product pages will NOT go through https.

 

3. The next obvious step is to go to /controllers/front/CategoryController.php

and

/controllers/front/ProductController.php

and force the ssl on them by adding

public $ssl = true;

in their class variables.

 

We have to do it, however at this point neither category nor product pages will work at all, resulting in redirection loop.

 

To finally solve this:

 

4. Go to your back office > Preferences > SEO and URLs, and check "No" for Redirect automatically for main link (canonical URL). Save. Now category and product pages will work too.

 

5. (Optional) You can also check "Yes" for Friendly URLs. They will work smoothly.

 

And I still couldn't get it working.. any admin willing to help me configure this? Thanks in advance.. I'm pretty much tired of trying to get it working...

Edited by PeterVD (see edit history)
Link to comment
Share on other sites

Hello, 

Sound like and issue with the SSL certificate. Please check if everything is ok with your SSL certificate via some of the SSL checking tools available around the web. Here is an example.

Indeed it seems that the SSL configuration of the Prestashop Platform seems to be correct and the issue can be only related to the SSL certificate itself. 

If you would like us to check on the issue please send your domain as a private message and we will investigate further. 

Best Regards,
FastComet Team 

Link to comment
Share on other sites

Hello, 

 

Sound like and issue with the SSL certificate. Please check if everything is ok with your SSL certificate via some of the SSL checking tools available around the web. Here is an example.

 

Indeed it seems that the SSL configuration of the Prestashop Platform seems to be correct and the issue can be only related to the SSL certificate itself. 

 

If you would like us to check on the issue please send your domain as a private message and we will investigate further. 

 

Best Regards,

FastComet Team 

 

 

Everything's fine with the SSL (According to that website)... so I suppose its nothing to do with it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...