Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Shopping Carts FAQ  >  CS-Cart FAQ  >  How to configure CS-Cart to work with a new domain?
Top Scroll

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

 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 our website.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.