Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images on Non-Secure Server, How to ref from Secure Server


ibuyo

Recommended Posts

Hello,

 

Sorry to all those people out there who are sick of helping newbies but hey you've gotta start somewhere :)

 

I have a non secure server - http://www.mydomain.com.au/ and a secure server https://www.secureserver.com.au/mydomain/.

 

Currently i have my catalog directory located at http://www.mydomain.com.au/catalog/

 

and a duplicate (for secure connections) at https://www.secureserver.com.au/mydomain/catalog/

(which in actual fact is http://www.mydomain.com.au/secure/catalog/).

 

This seems to work fine with an acceptable amount of space wastage.

 

However, i want the image directory to reside only on the non-secure section of the site (i.e. http://www.mydomain.com.au/images/) as duplicating the image directory would significantly increase space wastage.

 

My problem is that i can see no way of referencing the "http://www.mydomain.com.au/images/" directory from the secure server. I have tried setting the image path on the secure server to "../../images/" but this ends in the URL of "https://www.secureserver.com.au/images/". I can set an absolute reference (or "hard-code") the image path but when i do this i get an error about displaying non-secure and secure items.

 

Can anyone help me with this problem?

 

Regards,

Stuart

Link to comment
Share on other sites

Spot the idiot :oops:

 

For some reason i managed to get it into my head that having the images directory in the secure folder would somehow magically make the directory secure.... wrong :wink:

 

For those of you who are still lost - i only needed one instance of the images directory - in the https://www.mydomain.com.au/secure/images/, that way both the secure and the non-secure sections of the site could reference the same directory by modifying the appropriate values in the two local/configure.php files.

Link to comment
Share on other sites

I have a non secure server - http://www.mydomain.com.au/ and a secure server https://www.secureserver.com.au/mydomain/.

 

I am assumming that you set your secure server url (with no trailing slash) at setup to

https://www.secureserver.com.au/mydomain/

or maybe

https://www.secureserver.com.au/~mydomain/

:?:

 

That is how you would call your images also.

src="https://www.secureserver.com.au/mydomain/imageurl"

or maybe

src="https://www.secureserver.com.au/~mydomain/imageurl"

 

You only need these on https pages or the browser will generate a warning.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...