Support » Networking WordPress » Changing Multisite URL after the site has been in use

  • This is actually not a bug but a question. I have a wordpress multisite installation which uses subdomains for subsites. However, I have received request that I have to change the domain of one of the subsites from e.g. site1.example.wordpress.org to crafting-jewelry-1.com. I’ve found this link that explains that top level domains for subsites can be changed, upon installation in the wp-admin:

    https://wordpress.stackexchange.com/questions/251116/how-to-use-wordpress-multisite-with-different-domain-names

    But my site has been in use for some time, and stuff likes themes and plugis have been changed from a base template. If I follow the instructions from the provided link, and change the URL for a subsite, will this break the site? Do I need to make a manual change somewhere in mysql or wp-config.php?

    My wp version is 4.9.4 . Note that I do not want to change the multisite original domain, just a domain of one of its subsites. I have tried “changing” the domain by using a reverse proxy to apache, however, even if I get the desired url in the browser, the page is dynamically generated with the links to the old domain, and when I follow any of them I am naturally redirected to the old domain.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should be able to change the domain for a subsite by accessing the Network subsite menu and changing the siteurl and home to the new domain; but this might break other things since your WP system might not be configured to handle multiple domains.

    Note: I run WP multisite with subdomains and another with subdirectory. I use a plugin to map my subsite to other domains – https://wordpress.org/plugins/wordpress-mu-domain-mapping/ – works perfectly.

    I would like to avoid plugins for domain mapping, since I’m not sure how much under active development are they, and that may be the problem in the long run. At least I think so. However, I will keep an open mind, ant take into consideration your recommendation. Thank you very much @jkhongusc!

    Can you clarify what did you mean by: “but this might break other things since your WP system might not be configured to handle multiple domains”? Do you mean there are some additional WP settings I need to take in order to make this work, or did you mean that I need to change apache configuration so that it handles new domain? Although I’m not the WP admin, it is a self hosted instance, and I’m managing the server, so I have a complete control if something needs to be changed.

    > I would like to avoid plugins for domain mapping, since I’m not sure how much under active development are they, and that may be the problem in the long run.

    I have been using the MU Domain Mapping plugin for 5 years in multiple large systems – over 100k page requests per day. Havent had any issues. The hardest part is figuring out the right configurations at the beginning.

    > Can you clarify what did you mean by: “but this might break other things since your WP system might not be configured to handle multiple domains”?

    If you change the siteurl to a completely different domain AND have custom configurations in wp-config.php that conflict with the siteurl, you can break your site and not be able to access it. For example if you set siteurl to “www.domain1.com” and set define(‘COOKIE_DOMAIN’, ‘domain2.com’ );

    The only way to fix something like that after the fact is usually to modify the siteurl via database manually (e.g. phpmyadmin).

    Thanks. I will definitely look into plugin.

    And as for the manual edits, editing wp-config.php should be easy. I’m not sure about the database though. Thanks for the help and these useful insights.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing Multisite URL after the site has been in use’ is closed to new replies.