• Resolved Solocoombe

    (@solocoombe)


    Running a Multisite set up with currently just one site, configured for Sub Directories not Sub-Domains.
    It is currently using the naked domain (non WWW), I need to change to WWW.

    It seems this is simple when not running Multisite, but what’s the best method when multisite is configured?

    Thanks All,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Solocoombe

    (@solocoombe)

    Update: Solved my own question, actually very easy.
    Once in phpMyAdmin, select your WordPress database and browse the table wp_options. Find the options siteurl and home and change their values to the new domain you want to use.

    Glad to hear you worked it out. You can now mark this thread as Resolved.

    BTW, an even easier method is Admin -> Settings -> General

    There you can change the URL and other main settings, without having to worry about using phpMyAdmin.

    Thread Starter Solocoombe

    (@solocoombe)

    Hey, thanks for reply.

    When running Multisite the URL options under the Admin > Setting do not appear. Atleast for me I didn’t have them.

    Thread Starter Solocoombe

    (@solocoombe)

    Adding to my own thread incase anyone needs this info in the future.

    Both solution above do not actually work, my original solution does not fully update everything. I managed to do what I needed to do by doing the following:

    Go into wp-content/themes/your-theme-folder/functions.php.

    Add this action and save:
    update_option( ‘siteurl’, ‘https://example.com’ );
    update_option( ‘home’, ‘https://example.com’ );

    It will update nearly everything without the need for search & replace.

    Go into the network database and make sure the following tables are updated with the new domain:
    `wp_option
    wp_site
    wp_sitemeta
    wp_blogs
    wp_#_options

    Then update the WP-config file with the new domain.

    Now everything should work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multisite Non-WWW to WWW’ is closed to new replies.