Support » Networking WordPress » Network subdomain wrangling

  • Resolved mjones22


    Hi WP Forums-

    I am using WordPress Multisite to give clubs and student organizations their own blogs at my high school.

    Here’s my current setup: – high school’s main website, completely separate CMS – potential website for the chess club, one of many networked WordPress sites – high school’s news website
    … etc.

    Since WordPress isn’t hosted on the subdomain (but I do have wildcard DNS pointing to my server), is there any way that multisite can create blogs at As of now (with as the initial site I made), blogs are created at


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


    Lead Plugin Wrangler

    You could try treating them as mapped domains instead of subdomains, but … where is WP installed? If it’s in a subfolder, like, then you’d get

    If you put it in, though, with subfolders for /chess etc, then you could MAP to

    I think.

    WordPress is installed in the root.

    Subfolders would potentially work, but it’s less of an elegant solution IMO.

    From wp-config.php:

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', '' );
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    $base = '/';

    The problem occurs when I change to – creating new blogs 302 redirects to – which is using a completely separate CMS.

    Problem solved.

    define('NOBLOGREDIRECT', '');
    define('DOMAIN_CURRENT_SITE', '');

    For the uninitiated, NOBLOGREDIRECT is very useful. By default, it redirects you to http://DOMAIN_CURRENT_SITE/wp-signup.php if you go to a nonexistent blog, so if you want people to sign up elsewhere you just have to add a define.

    This could also be useful to redirect people back to if you’ve got wildcard DNS and don’t want everyone making blogs.

    EDIT: Not completely resolved!
    404s redirect to the NOBLOGREDIRECT path. Put this code into wp-content/plugins/404.php:

    remove_action( 'template_redirect', 'maybe_redirect_404' );

    DOUBLE EDIT: This actually doesn’t work. Trying to find a better/less hacky solution.

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Wait, WordPress is installed in the ROOT of Then just make subdomains and call it a day.

    You said – high school’s main website, completely separate CMS

    So I ASSUMED that you didn’t have WordPress in root.

    WHERE is WP installed? 🙂

    WP is installed on a completely separate server than the main high school CMS. It receives all traffic from wildcard subdomains. That’s why I commented that people would be inadvertently getting their blogs set up at instead of

    It is in the root of the WILDCARD subdomain, not the subdomain.

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler


    Let’s make it simplier for dumb brains here. 😉

    1) You have something installed at

    2) WordPress is installed at

    3) You want to point to right?

    So yeah, just go ahead and do that, and then MAP to


    WordPress is installed at and I want it to make blogs at There’s something else entirely on, correct.

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Okay. Then as I said the first time.

    Make your blogs and MAP them to

    That will have them appear as to anyone visiting.

    Thanks, that’s a great suggestion.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Network subdomain wrangling’ is closed to new replies.