Defining the Primary Domain for my Site

WordPress’s siteurl and home settings determine the address where the site is displayed. If the site has used the address customer.seravo.com during the development stage, the address customer.com must be changed in the control panel, when the site is published. Enter the address in the appropriate field under Settings > General




Changes can also be made from the command line with the wp-cli tool:

$ wp option get siteurl
http://customer.seravo.com

$ wp option get home
http://customer.seravo.com

$ wp option update siteurl https://customer.com
Success: Updated 'siteurl' option.

$ wp option update home https://customer.com
Success: Updated 'home' option.


If you would like to ensure that all references of the old address in the database are replaced with the new one, this can be done with the command wp search-replace '//customer.seravo.com/' '//customer.com/' --all-tables


Defining the site address in network (multisite) environment

Changing the domain in multisite is slightly different than in traditional WordPress site

  1. Go into My sites -> Network Admin -> Sites
  2. Open up the chosen subsite settings
  3. Choose the "Settings" tab
  4. Change the "Siteurl" and "Home" content to the desired address (for example https://example.com)

Defining an alias for a subdomain in multisite environment

  1. Go into My sites -> Network Admin -> Sites
  2. Open up the chosen subsite settings
  3. Choose the "Settings" tab
  4. Press "Add new" and choose "Mark alias as active"
  5. Save by pressing "Add Alias"

Did this solve your problem?