Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories/Products images broken in Administration after enabling SSL


gemini1

Recommended Posts

Wanted to share this solution I found after many hours of searching and experimenting. Using shared SSL with 1&1

 

Problem: Enabled SSL for Administration /catalog/admin/configure.php

 

define('HTTP_SERVER', 'https://ssl.perfora.net/store.example.com');

define('HTTP_CATALOG_SERVER', 'https://ssl.perfora.net/store.example.com');

define('HTTPS_CATALOG_SERVER', 'https://ssl.perfora.net/store.example');

define('ENABLE_SSL_CATALOG', 'true');

 

SSL worked great except that all the Categories/Products images were broken.

 

Finally found that changing the following /catalog/admin/configure.php entries:

 

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

 

Changed to:

 

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'store.example.com/images/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'store.example.com/includes/languages/');

 

Now all the images in Administration display using SSL!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...