WordPress.org

Ready to get started?Download WordPress

Forums

Multisite URL change (2 posts)

  1. ianp63
    Member
    Posted 2 years ago #

    Hi, I've created a new WP multisite and I'm about to change my development site IP/URL to the correct live URL. I've read lots of info from the Codex and several posts, but before I go ahead I need to clarify a couple of things that aren't obvious to me as a novice.

    In file manager, my root/ home directory is (home/ipswi962).
    My current homepage is at http://my_ip_address/~ipswi962/ (not sure why there's an extra '~' ) ?
    My 2nd multisite site is at http://my_ip_address/~ipswi962/members/

    My live URL will be http://www.my_new_site.org.uk (Is that my Home URL, Site URL or both? )

    In the database tables I think I need to change:-
    1/ all instances of my_ip_address/~ipswi962 to http://www.my_new_site.org.uk
    and
    2/ all my_ip_address/~ipswi962/members to http://www.my_new_site.org.uk/members

    but,

    3/ In wp-config.php I have the following:-

    $base = '/~ipswi962/';
    define( 'DOMAIN_CURRENT_SITE', 'my_ip_address' );
    define( 'PATH_CURRENT_SITE', '/~ipswi962/' );

    so based on what I've said above, I can't work out what to change to what in wp-config.php?

    Can anyone put me out of my misery please?
    Thanks.

  2. You're right about changing the my_ip_address lines in the database, but PLEASE please please read http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

    You CANNOT just search/replace. And if you edit my_ip_address/~ipswi962/ correctly, you don't have to worry about my_ip_address/~ipswi962/members (basically the right search for the first one will cover the second)

    As for the WP Config, it becomes this:

    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );

Topic Closed

This topic has been closed to new replies.

About this Topic