WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Copy multisite (7 posts)

  1. martin1972
    Member
    Posted 3 years ago #

    I want to copy a multisite from one domain/server to a new domain on another server.

    Is it as simple as to move all files, copy the databases and then change DB-settings and DOMAIN_CURRENT_SITE in the wp-config.php, or are there other considerations? Do I have to run "install" again or anything?

  2. It's all that PLUS you have to go through the entire db and change the domain name. it's a hardcoded reference on ever site.

    when you download the db dump, open it up i na really good text editor (cuz it'll be big) and do a search & replace. then upload it to the new server.

  3. martin1972
    Member
    Posted 3 years ago #

    Thanks. Is it many tables and fields that contain the domain name? Otherwise it might be easier to do a replace directly in the database.

  4. Is it many tables and fields that contain the domain name?

    Most of them. Yes, really.

    Otherwise it might be easier to do a replace directly in the database.

    that's what I suggested.

  5. martin1972
    Member
    Posted 3 years ago #

    OK, thanx. That is the first thing i found, that I do not like totally with WP, otherwise i love it. Should have been a variable in my opinion.

    (I meant a query like "UPDATE table SET field1 = REPLACE(field1,'domain1.com','domain2.com');" instead of search and replace in text editor)

  6. Yeah, it's a pain. :D

  7. martin1972
    Member
    Posted 3 years ago #

    Indeed :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.