There are two configuration files in Zen Cart that you must edit in order to change the domain name for your website:

 

  • /includes/configure.php

You need to edit the following line of code:

-          define(‘HTTP_SERVER’, ‘http://newdomain.com’);

If you are using SSL, you also need to change the following:

-          define(‘HTTPS_SERVER’, ‘https://newdomain.com’);

where newdomain.com is the actual domain that you will be using

 

  • /zcadmin/includes/configure.php

You need to edit the following lines of code:

-          define(‘HTTP_SERVER’, ‘http://newdomain.com’);

-          define(‘HTTP_CATALOG_SERVER’, ‘http://newdomain.com’);

If you are using SSL, you also need to change the following:

-          define(‘HTTPS_SERVER’, ‘https://newdomain.com’);

-          define(‘HTTPS_CATALOG_SERVER’, ‘https://newdomain.com’);

where newdomain.com is the actual domain name that you will be using