Support » Networking WordPress » Multisite domain prefix

  • Hi
    I have WPMU installation that has main site on subdomain : sub.maindomain.com
    When I create new site it is created under : new.sub.maindomain.com
    but I would like that all sites are created under maindomain.com so that new site would have url new.maindomain.com
    Is this possible ? If so…. how ?

    thank !

Viewing 1 replies (of 1 total)
  • Hello,

    I have WPMU installation that has main site on subdomain : sub.maindomain.com

    WPMU (now Multisite) sites are either a SUB-DOMAIN or SUB-DIRECTORY of the primary domain. So this baby is working exactly as it is designed to work, and there’s no simple or easy way to achieve what you want.

    The real solution would be to move the Multisite installation to maindomain.com, so that the sub-sites will live at subsite1.maindomain.com, subsite2.maindomain.com, etc

    If, for whatever reason, you cannot use maindomain.com for the primary multisite domain but still want subsite.maindomain.com, a clean solution would be to:

    1. register a new, throwaway domain, let’s call it throwawaydomain.com (less than 10 bucks for a whole year),
    2. setup Multistie on this primary domain, using either subdomain setup (subsite.throwawaydomain.com) or sub-directory setup (throwawaydomain.com/subsite) — doesn’t matter which one you use, since step 3 below will hide this completely
    3. Use domain mapping to map subdomain.maindomain.com to subsite.throwawaydomain.com or throwawaydomain.com/subsite

    This way, both the public AND the search engines will only see the subdomain.maindomain.com addresses, and the throwawaydomain.com addresses will be completely hidden.

    Of course, you can do the above with your current setup (ie using sub.maindomain.com as your primary multisite domain, without using a separate domain), and map subdomain.maindomain.com to subsite.sub.maindomain.com — but things can get pretty complicated, and troubleshooting can be a nightmare. Save yourself the trouble!

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite domain prefix’ is closed to new replies.