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.
-
- Replace the old site address with the new one in the parameter lines
HTTP_SERVER
,HTTPS_SERVER
,HTTP_CATALOG
andHTTPS_CATALOG
. - Correct paths to root directory of the site on all lines with parameters starting with a prefix
DIR_
(DIR_APPLICATION
,DIR_SYSTEM
etc).
- Check the site is working.
Alternatively, you can replace the standard configuration files universalsubstituting their data to connect to the database.