2.14.3.7. Change site address in OpenCart

This article describes the steps for changing the site address only within OpenCart itself. To rename the site on the hosting, see Rename site.

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

Alternatively, you can replace the standard configuration files with universal ones, substituting your database connection credentials in them.

Content

    (1)