How to configure osCommerce to work with a new domain?

In order to configure osCommerce to work properly with another domain, you should modify the twoconfigure.php files in includes/ and admin/includes/ folders to reflect the new domain.

The settings that should be changed in includes/configure.php are:

HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com:

define('HTTP_SERVER', 'http://newdomain.com');

HTTP_COOKIE_DOMAIN - again, this should be changed to reflect your new domain name:

define('HTTP_COOKIE_DOMAIN', 'newdomain.com');

If you are using SSL you should also modify:

HTTPS_SERVER - for example:

define('HTTPS_SERVER', 'https://newdomain.com');

HTTPS_COOKIE_DOMAIN - set this to:

define('HTTPS_COOKIE_DOMAIN', 'newdomain.com');
 

In admin/includes/configure.php you should modify:
 

HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com:

define('HTTP_SERVER', 'http://newdomain.com');

HTTP_CATALOG_SERVER - again, this should be changed to your new domain name:

define('HTTP_CATALOG_SERVER', 'http://newdomain.com');

If you are using SSL, you should also change HTTPS_CATALOG_SERVER to:

define('HTTPS_CATALOG_SERVER', 'https://newdomain.com');

You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to setup osCommerce to use SMTP

osCommerce could be setup to use the SMTP functionality inside its back-end, but there are some...

How To Secure OsCommerce

In order to secure OsCommerce please follow these steps: 1. Download all your OsCommerce files...

OsCommerce Security Check

If you have any doubts that your OsCommerce security has been compromised please follow these...

OsCommerce Admin Login Problems

If you cannot log into your OsCommerce admin area try the following: 1. Open your OsCommerce...

How to optimize osCommerce for better performance?

osCommerce is one of the most popular free shopping cart applications currently available. Here...