How to configure CS-Cart to work with a new domain?

Sep 12, 2013, by admin

In order to configure CS-Cart to work properly with another domain, you should modify the config.local.php file located in the root of your CS-Cart installation. You can open and edit this file through cPanel -> File manager.

You should change the following line:

$config[‘http_host’] = ‘olddomain.com’;

to

$config[‘http_host’] = ‘newdomain.com’;

If you are using an SSL certificate for your website, you should also change this line:

$config[‘https_host’] = ‘olddomain.com’;

to

$config[‘https_host’] = ‘newdomain.com’;

If you have moved the CS-Cart installation to a different subfolder, the following lines from the same configuration file have to be changed as well:

$config[‘http_path’] = ‘/oldfolder’;
$config[‘https_path’] = ‘/oldfolder’;

to

$config[‘http_path’] = ‘/newfolder’;
$config[‘https_path’] = ‘/newfolder’;