Jump to content

A bit of help getting SSL https:// working please...


Recommended Posts

Hi,

I'm hosted with the infamous 1and1 servers, and I'm stuck trying to get my shop working using SSL. The hosting package come with a shared SSL certificate. I've activated this, and it gives me this link: https://sslrelay.com/domain.co.uk
which is odd, as I thought it would just stick an 's' at the end of the http etc.

So prestashop tries to go to: https://www.domain.co.uk/my-account.php and fails.

Anyone know what I can do to fix this?

Many thanks,

Dan

Link to comment
Share on other sites

you need to change init.php line 96

from:
'base_dir_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].__PS_BASE_URI__,

to:
'base_dir_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').'sslrelay.com/domain.co.uk'.__PS_BASE_URI__,

Try that if it doesn't work send me FTP details to both SSL & Prestashop site & I will take a look for you ;-)

Link to comment
Share on other sites

Thanks for the reply, I've had a quick go at it, but unfortunatly I still get the same, I'm trying this:
'base_dir_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').‘sslrelay.com/eonlasers.co.uk’.PS_BASE_URI,
(Obviously changing the domain.co.uk bit)
It's late and I'm very tired, so I'll have another crack at it tomorrow. But if I still can't breathe any life into it, I might take you up on your offer, thanks :D

Dan

Link to comment
Share on other sites

did u manage to sort it out yet, because i did get it to work:
I changed:
init.php line 96

from:
'base_dir_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].PS_BASE_URI,

to:
'base_dir_ssl' => (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').'sslrelay.com/domain.co.uk',

Link to comment
Share on other sites

I've sort of given up getting it to work.
Are you hosted with 1and1?

As I have to direct all http requests to: http://domain.co.uk/...whatever...
and all ssl requests to https://sslrelay.com/domain.co.uk/...whatever...

:-?
That code didn't make much difference to anything!
I'm also trying to get friendly url's working, but to no avail :-(
1and1 is a nightmare! (But cheap and fast ;-) )

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...