2.13.4.7. Change site url in OpenCart

This article describes the steps to change the site address only within OpenCart itself. To rename a site on a hosting (virtual host in the section "My sites" and the site directory on FTP), use instruction.

  1. Edit two config files config.php and admin/config.php:
    1. Replace the old site address with the new one in the parameter lines HTTP_SERVER, HTTPS_SERVER, HTTP_CATALOG and HTTPS_CATALOG.
    2. Correct paths to root directory of the site on all lines with parameters starting with a prefix DIR_ (DIR_APPLICATION, DIR_SYSTEM etc).
  2. Check the site is working.

Alternatively, you can replace the standard configuration files universalsubstituting their data to connect to the database.

Content