Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

no images when in ssl


Guest

Recommended Posts

Posted

I am new to SSL.

 

The site is basically working but when displaying a page in https:// i lose my images and stylesheet

I have searched the forums and found others with similar problems and tried most suggestions with no luck

 

When I click on the properties for the images I get

 

http:///images/oscommerce2.jpg

Obviously the path in not set correct

 

I changed my configure.php as follows but still no luck

 

 

define('HTTP_SERVER', 'http://www.normwright.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.normwright.com/catalog/');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.normwright.com');

define('HTTPS_COOKIE_DOMAIN', 'www.normwright.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', 'https://www.normwright.com');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', 'https://www.normwright.com/catalog/');

define('DIR_WS_IMAGES', 'https://www.normwright.com/catalog/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

 

Could it be because I am on a shared server using the default certificate

 

Any suggestions

Posted
http:///images/oscommerce2.jpg

Obviously the path in not set correct

 

 

hey normie,

 

just wondered if you still had the problem, i just recently fixed one with my images and ssl, as my images were looking at https:// .. rather than http://

 

if its still not working i notice that your image link has 3 /'s in it is this correct or are you just cutting out some of your url.

 

also be careful when declaring some of your directories above, as when osCommerce looks for a file it concatenates them so you may end up with 2 slashes rather than 1, i would suggest looking back at the default configure.php and check that when you compare it to yours that you have /'s in the right place

 

Chris

Posted

found the solution

 

My host is using Plesk

 

There is an option setting in Plesk under SSL that offers

 

"Use a single Directory for housing SSL and Non-SSL content'

 

Once I checked the box the images and stylesheet problem was gone

Archived

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

×
×
  • Create New...