Jump to content

SSL on different name server


Czarny

Recommended Posts

Hello everybody.

I have my web site on foo.com (ie. http://www.pippo.com) but my certificate is on https://ssl.foo.com/pippo
My previous shopping cart allowed me to point the ssl connection to another different site, while Prestashop only adds https:// to the main website (ie. https://www.pippo.com)
Is there a way to point to another site to have ssl working?

Thanks

Link to comment
Share on other sites

Czarny, you may want to consider reissue the certificate to have it on https://www.pippo.com as the current framework of prestashop allowed pointing to the root domain.

If there is a need to prove that the site is secured and encrypted for safe shopping to your shoppers, I would advise to upload a security lock image on your website as it has proven to be working fine.

Link to comment
Share on other sites

Try changing line 131 of init.php (in PrestaShop v1.3.1) from:

'base_dir_ssl' => $protocol_link.$server_host.__PS_BASE_URI__,



to:

'base_dir_ssl' => $protocol_link.((Configuration::get('PS_SSL_ENABLED') OR (isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) == 'on')) ? 'ssl.foo.com/pippo' : $server_host).__PS_BASE_URI__,

Link to comment
Share on other sites

Rocky I tried your solution and it sort of works.

'base_dir_ssl' => $protocol_link.((Configuration::get('PS_SSL_ENABLED') OR (isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) == 'on')) ? 'firedkm.fatcow.com/sterling/' : $server_host).__PS_BASE_URI__,



If you look at the code and you will notice I have a directory after my shared ssl name. When I activate the ssl in prestashop and go into the login page. It takes me to my other website in the root directory. What can we do to stop this from happening???

Link to comment
Share on other sites

Well I fixed it.....I think.

I put the website with the ssl into the root directory of the server instead of a folder. Then I also moved the other website out of the root directory.

Seems to be working with out any errors.

Dale

Thank you for the help

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...