Thanks for your effort on this but I am having trouble trying to implement this. edit 3 and edit 4 no longer appear to be in my code. I am using version 1 and am on 1and1 hosting using a shared ssl.
Edit 3
I can’t find this line…
if (isset($_SERVER['HTTP_X_FORWARDED_SERVER']) && $_SERVER['HTTPS'] == 'on') {
but this line does appear on 97.
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
When I paste over my lines with the corrected ones I still get errors when trying to access anything requiring the SSL. The home page displays with the normal address but the admin errors out as follows.
Error 500 - Internal server error
An internal server error has occured! Please try again later.
Almost everything works.
Except for the Login for existing customer on checkout…
Hmmm, I can’t work out what I am missing then. Tronics, was the code in the same place or was it different for you? An suggesttions would be appreciated. I am reluctant to spend the money 1and1 wants for a dedicated ssl just for a development server.
I have configured magento 1.0 in a shared SSL environment (not 1&1;) and tried everything I could known.
Not success. The site stalls/hangs when clicking on Account or Login and SSL is configured with Yes.
Strange is correct address appears on links......
Tried several different things:
- Rewrite enabled / disabled
- SSL for everything (disaster… had to disable it through database).
- Changes in this topic, etc.
Tks,
Elisa Zaroni.
(PS: Sorry, my internet was terrible, did not realize my previous post had worked)
@Elisa
Is your SSL Certificate was set up for the http://www.p2d.com or p2d.com (without www)
I was trying to access your site, and I see that for both with and without www I was getting that certificate is not valid
Check with your hosting company your certificate configurations
Did you try to configure Magneto to use SSL via admin, but you don’t actually have SSL Certificate?
What is the correct URL that there will be no certificate warnings?
I have 1&1;hosting and I had a very hard time trying to get my shared SSL certificate to work correctly. I don’t know if it was a coincidence but I only got it to work right only after I set “YES” to the “Use Secure URLs in Admin:” and “Use Secure URLs in Frontend” section. It did not work if I only had the “Frontend” set to “Yes”.
And also I had to use “www” in the Base URL.
I finally got it working with these settings in the Admin/Configuration/Web/Secure section:
Base URL: https:www.mydomain.com
Base Link URL: {{secure_base_url}}
Base Skin URL: {{secure_base_url}}skin/
Base Media URL: {{secure_base_url}}media/
Base JavaScript URL:{{secure_base_url}}js/
Use Secure URLs in Frontend: Yes
Use Secure URLs in Admin: Yes