Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images and SSL using two different domains


rinahatcher

Recommended Posts

Posted

Well, after searching both day and night (literally), I found many great help topics on this forum and osdox.com.

 

My problem was having to use two seperate domains, one for non secure, and one given to me by my host as my secure domain.

 

(i.e.)

http://mydomain.com

 

vs

 

https://svr89.myhostingcompany.com/~mydomainuserid

 

What did I change?

In the /shop/includes/configure.php file:

 

from this

define('DIR_WS_IMAGES', '/shop/images/');

 

to this

 

define('DIR_WS_IMAGES', '/~mydomainuserid/shop/images/');

 

I just appended the /~mydomainuserid part of the host's secure server domain name to the beginning of the actual shop/images/ directly.

 

So far, it is enabling all images in secure mode to show up. :thumbsup: When I go to non secure, images are still there (never had a problem with those).

 

It seemed to work. Not guaranteeing it will solve everyone's issue, or that it won't cause problems elsewhere, but I wanted to post this as soon as I figured out a way to make it work!

 

Good luck to ya!

Posted

That's exactly what I did (I may have got the idea from one of your other posts?) and it's worked for me.

 

Now I'm just having problems with the images directory when the admin side of things uses SSL - but I've already posted for help with that.

 

If it was you that gave me the idea - thanks!

 

cheers,

theDruid.

Posted
Now I'm just having problems with the images directory when the admin side of things uses SSL - but I've already posted for help with that.

 

Yeah, I believe I'm having a similar problem still on the admin side. For instance, I got most of the images and icons to pull up fine. But, there's ony a couple that still don't come up. I believe they are via a different directory and I'm trying to figure out what setting affects those particular images.

 

Still no luck though.

 

Glad the other thing worked for ya!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...