codieskid Posted May 29, 2007 Posted May 29, 2007 Hi There I have nearly finished my e-shop using oscommerce and have recently purchased and installed an ssl certificate on my server. However when I go to the http:www.mydomain.com the images and content show fine but when viewing the site at https://www.mydomain.com i get loads of broken images etc. What I want to know is. How can I fix it so that https:// views the pages correctly? Is there a file that I need to edit or is it controlled via the admin system or by the server? The configure.php file in the includes folder has the following: define('HTTP_SERVER', 'http://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.mydomain.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); So is it just a case of editing this file to get it working and if so do i just fill in the https fields with the same information as the http fields? Finally I noticed in the sessions section of the admin system there is a field for: Check SSL Session ID which is currently set to FALSE. Does this need to be set to true now that I have an ssl certificate. Many thanks Trevor
♥FWR Media Posted May 29, 2007 Posted May 29, 2007 Hi There I have nearly finished my e-shop using oscommerce and have recently purchased and installed an ssl certificate on my server. However when I go to the http:www.mydomain.com the images and content show fine but when viewing the site at https://www.mydomain.com i get loads of broken images etc. What I want to know is. How can I fix it so that https:// views the pages correctly? Is there a file that I need to edit or is it controlled via the admin system or by the server? The configure.php file in the includes folder has the following: define('HTTP_SERVER', 'http://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.mydomain.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); So is it just a case of editing this file to get it working and if so do i just fill in the https fields with the same information as the http fields? Finally I noticed in the sessions section of the admin system there is a field for: Check SSL Session ID which is currently set to FALSE. Does this need to be set to true now that I have an ssl certificate. Many thanks Trevor define('HTTPS_SERVER', ''); Where is the https url? define('HTTPS_SERVER', 'https://www.mydomain.co.uk'); you might want to set both cookie domains to .mydomain.co.uk too Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.