WordPress.org

Ready to get started?Download WordPress

Forums

How to update the network when the primary domain is on another server (4 posts)

  1. Rebecca Markowitz
    Member
    Posted 1 year ago #

    We set up Multisite for 2 sites a.domain.com and b.domain.com. We set this up using A records to point these subdomains to our server. The primary site domain.com is actually a separate site that isn't using WordPress and is sitting on a different server.

    It looks like this:
    domain.com (hosted on Host X)
    a.domain.com (hosted on Host Y)
    b.domain.com (hosted on Host Y)

    These 2 subdomains on Multisite are running fine but we can't get to the /wp-admin/network area to upgrade the network and other plugins since the main domain (domain.com) is on another server.

    Any ideas? htaccess (on domain.com)? split the sites? any other ideas?

    Thanks so much!

  2. Rebecca Markowitz
    Member
    Posted 1 year ago #

    Oh right, I forgot to mention that the primary domain is https:// so I can't use my computer's "hosts" file.

  3. jkhongusc
    Member
    Posted 1 year ago #

    We are in this exact situation. We have http://www.usc.edu or usc.edu on another (non-WP) server(s). We want WP sites for: site1.usc.edu, site2.usc.edu, site3.usc.edu, etc.

    This is what I first did:
    Created a WP sub-domain multisite system with the main site name as mainsite.usc.edu. I modified these two wp-config parameters:

    define( 'DOMAIN_CURRENT_SITE', 'usc.edu' );
    define( 'COOKIE_DOMAIN', 'usc.edu' );

    This worked for a while... until I ran into an issue during an upgrade. I was told that this use-case was non-standard - thread here: http://wordpress.org/support/topic/wp-upgrade-305-311-broke-site?replies=34 So I backed out my modification of DOMAIN_CURRENT_SITE

    This is what we are running on now:
    Created a WP sub-domain multisite system with the main site name as mainsite.usc.edu. We added the MU domain mapping plugin to handle sub-domains - http://wordpress.org/plugins/wordpress-mu-domain-mapping/ I had to modify sunrise.php (part of the MU domain mapping plugin) to handle multiple sub-domains. If you have 1 subdomain, then configuring COOKIE_DOMAIN would work fine.

    We have been running for over a year now with over 100 subdomains.

  4. If domain.com needs to be part of the multisite, it won't work. Otherwise, I'd probably install WP on a.domain.com, and use subfolders. Then map a.domain.com/b to b.domain.com via WPMU Domain Mapping.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.