Skip to content

Instantly share code, notes, and snippets.

@spencermorin
Created June 28, 2013 20:40
Show Gist options
  • Save spencermorin/5887931 to your computer and use it in GitHub Desktop.
Save spencermorin/5887931 to your computer and use it in GitHub Desktop.
Move Project Nami ( or WordPress ) multisite install to a new domain.
update wp_options set option_value='http://example.com' where option_name = 'siteurl' or option_name = 'home'
update wp_blogs set domain='example.com' where blog_id = '1' or blog_id = '2'
update wp_2_options set option_value='http://example.com/second-blog-path' where option_name='siteurl' or option_name='home'
update wp_site set domain='example.com' where id='1'
update wp_sitemeta set meta_value='http://example.com' where meta_key='siteurl'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment