EnglishEN

Change your WordPress site address (URL)

Change the two addresses in wp-admin > Settings > General, or write the new address into wp-config.php.

Menu location · same on ChemiCloud and Hostingerwp-adminSettingsGeneral

Steps

  1. Go to wp-admin > Settings > General.
  2. WordPress Address is where the files are, and Site Address is what visitors type. Change both to the new address and click Save Changes.
  3. If you can't get into the admin area, add the two lines below above the «stop editing» line in wp-config.php. These values take priority over the admin settings.
    define( 'WP_HOME', 'https://mynewdomain.tld' );
    define( 'WP_SITEURL', 'https://mynewdomain.tld' );

Other methods

You can also change it with WP-CLI.

Source

Related posts