Knowledge Base
MilesWeb / CS-Cart FAQ

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

Approx. read time : 2 min

In this article, we have jotted down the steps that will help you to configure CS-Cart to work with a new domain name.

In order to configure CS-Cart to work with a new domain name, edit the config.local.php file that is located in the root of your CS-Cart installation. You can edit the config.local.php file through cPanel => File Manager

Change the following line:

$config['http_host'] = 'myolddomainname.com';

to

$config['http_host'] = 'mynewdomainname.com';

Change the following line if you have SSL enabled for your website:

$config['https_host'] = 'myolddomainname.com';

to

$config['https_host'] = 'mynewdomainname.com';

Edit the following line if you have moved the CS-Cart installation to a different folder:

$config['http_path'] = '/myoldfolder';
$config['https_path'] = '/myoldfolder';

to

$config['http_path'] = '/mynewfolder';
$config['https_path'] = '/mynewfolder';

If you are not able to configure CS-Cart for the new domain name, contact us our team will assist you to get this sorted.

If you are looking for a quality CS-Cart hosting provider, visit www.milesweb.com

Avatar
With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.