m (Created page with "<div align=justify>Ecommerce is getting more and more popular nowadays. However, several factors need to be considered before starting online business. So, to start a eCommerce s...") |
m |
||
Line 1: | Line 1: | ||
− | <div align=justify> | + | <seo title="SSL for OsCommerce" metakeywords="ssl not working, oscommerce ssl" metadescription="How to configure OsCommerce with SSL" /><div align=justify>For your online shop to function properly, SSL certificate is required. In order to configure osCommerce to work with SSL, you need to make sure it is alreay installed for your account, then open the file '''''public_html/catalog/includes/configure.php''''' and make the following changes:</div> |
− | + | ||
− | |||
− | |||
− | |||
− | + | define('HTTP_SERVER', 'http://www.yourdomain.com'); // e.g., http://localhost - should not be empty for productive servers | |
+ | define('HTTPS_SERVER', 'https://yourdomain.com'); // e.g., https://localhost - should not be empty for productive servers | ||
+ | define('ENABLE_SSL', true); // secure webserver for checkout procedure | ||
+ | define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); | ||
+ | define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com'); | ||
+ | define('HTTP_COOKIE_PATH', '/catalog/'); | ||
+ | define('HTTPS_COOKIE_PATH', '/catalog/'); | ||
+ | define('DIR_WS_HTTP_CATALOG', '/catalog/'); | ||
+ | define('DIR_WS_HTTPS_CATALOG', '/catalog/'); | ||
− | + | <div align=justify>Once done, open '''''public_html/catalog/admin/includes/configure.php''''' file, which is responsible for the admin area configurations, and do the same changes there. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | Once done, open '''''public_html/catalog/admin/includes/configure.php''''' file, which is responsible for the admin area configurations, and do the same changes there. | + | |
'''''Note:''''' In this example we are configuring an osCommerce installation for yourdomain.com. Make sure to change it to your actual domain name.</div> | '''''Note:''''' In this example we are configuring an osCommerce installation for yourdomain.com. Make sure to change it to your actual domain name.</div> |