Support » Networking WordPress » I cannot link back subdomain to main domain

  • I’ve spent so long trying to solve this, with so many different issues. Here goes my attempt to make sense of them all:
    I initially had 2 installs of wordpress, unlinked but really wanted them to share logins, themes, etc etc so went for a network.
    The network installed great on my main blog, taken control of plug-ins to the site admin, etc.
    The subdomain however did not link, and maintained it individuality but of course the link from the network admin works as i had set it to be be linked from there.
    main install is set up as:
    define(‘WP_DEBUG’, false);
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘www.mjswalking.co.uk’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );
    So i have tried the following in my attempts to fix it:
    and tried to do something similar to above but i get 1 of 3 errors, depending on the things i have tried:
    define(‘WP_DEBUG’, false);
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘webshop.mjswalking.co.uk’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 6 );
    define( ‘BLOG_ID_CURRENT_SITE’, 6 );
    i either get a 500 error, or it tells me i cannot install the subdomain or i get a database error! (by swapping webshop in and out of here and there and tryign to drop different definitions off the script

    I have read so many pages, i am not clear if i even need a second install. It reads as if i just create a subdomain from within the network settings and it should work… so i tried a new subdomain from that end, didn’t work., got a 500 error!
    Next i removed my original second install (only had 2 posts) and reinstalled, still no joy! I am sure i am just mis understanding something somewhere, can you help? I did a verification and got the following errors, the sites listed all created in the network admin panel but i am not sure where to go to put the issues right. I’ve not broken into code much, replying on plugins as much as possible:

    Checking wp_site table for selected Network by ID:

    Passed.

    Checking wp_site table for a unique combination of domain and path:

    Passed.

    Checking for super admin(s):

    Passed. Found 2 super admins

    Mark_Smith
    saraconde
    Checking DNS for this network:

    Passed.

    Checking hosted sites for correct Network-related values:

    Site 6 (webshop.mjswalking.co.uk/) has an invalid domain setting.

    Site 8 (affiliates.mjswalking.co.uk/) has an invalid domain setting.

    Checking hosted sites for correct Network-related meta values:

    Site 1 (www.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.

    Site 1 (www.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.

    Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in fileupload_url. This may prevent access to this site or disable some features.

    Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.

    Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.

    Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in fileupload_url. This may prevent access to this site or disable some features.

    Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.

    Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.

    Can you give me some advice? I am sure its something basic

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If you want TWO sites managed by the same login information, and running off the same DB, you use Multisite. That means you install it ONCE in one place, and make a subsite.

    Now. If you HAVE an extant install in that subdomain, it makes it harder.

    Go to your main site, the one at domain.com

    Turn on Multisite per http://codex.wordpress.org/Create_A_Network

    FOLLOW ALL THE DIRECTIONS. In order. One at a time. There’s a point where you have to add ONE line and THEN add more. If you try doing it another way, you’ll get messed up.

    Make sure that the main site still works.

    Make sure you changed your htaccess correctly.

    Then add a test site and see how that goes.

    If you’re using subDOMAIN, make sure you set up wildcards to point where the main domain is installed.

Viewing 1 replies (of 1 total)
  • The topic ‘I cannot link back subdomain to main domain’ is closed to new replies.