Skip to main content

Move a Site to a New Domain

Move a site workflow:

  1. Delete domain mappings for the site.
  2. wp search replace $old_url $new_url --all-tables; wp cache flush, avoiding trailing slashes.
  3. wp rewrite flush --url=$new_url; wp rewrite flush;
  4. Verify site loads and login works.
  5. re-add domain.
  6. restart browsers because of cached redirects.