Support » Plugin: WordPress MU Domain Mapping » One WordPress website two domains with IIS

Viewing 7 replies - 1 through 7 (of 7 total)
  • Don’t follow any instruction for WordPress installation that is that old. Menus have changed, terms have changed.

    I couldn’t figure out that ottopress instruction, had to work it out and document what worked, even correcting the mis-tries I had done.

    WordPress Multi-Site Domain Mapping

    You may have to change some of the WordPress installation too, especially if you didn’t install WordPress in the root of your account or the root of a subdomain — domain mapping (and likely much more of multi-site) will not work installed in a folder.

    Multisite is ok. Now I can add sub domain & sub directory. I need to add two main domains no sub domain or sub directory. One host two domains.

    Main domain =
    Second domain =

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    $base = ‘/’;
    define(‘DOMAIN_CURRENT_SITE’, ‘’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Plugin Author Ron Rennick


    MultiSite Guru

    You cannot map a domain to the main site.

    You do Not use the .htaccess file for domain mapping.

    “You cannot map a domain to the main site.” — the lines you showed, from your .htaccess file, have DOMAIN_CURRENT_SITE as one of the sites you said you want to map.

    I would recommend you don’t use the main multi-site domain for content. Best to keep the multi-site administration using the default theme and minimal plugins; use subdomains for custom themes and plugins.

    Purchase whatever type of domain name is cheapest (might be .info), to use for the multi-site administration (said another way, to be the unmapped domain of all the sites). Some domain name you wouldn’t send visitors to, could even be a few random characters.

    Then map your public domains (“main domain” and “second domain”), using the Domain Mapping Plugin.

    Is there any plugin that I can add main domain?

    I do not understand your question “Is there any plugin that I can add main domain”.

    a) there are millions of plugins you Could add -to- your main domain.

    b) You don’t -map- the main domain. If you want to install WordPress multi-site and have your content as you just use it.

    So, what are you asking?

    Are and the same site, and you want to know how to have either domain name point to the one site?

    Are you asking how to migrate the content from separate WordPress installations into your WordPress Multi-Site installation?

    You mention IIS. I should have asked about that sooner.

    Oops, when I said above you don’t use “.htaccess file for domain mapping”, I should have said you don’t use wp-config.php.

    And, oops, IIS doesn’t (usually) use .htaccess, but rather web.config (not to be confused with wp-config.php, of course, or is that confusing?)

    Are you on a shared hosting account, or do you manage your own server?

    Getting domain mapping working on an IIS server requires an experienced server administrator, able to set up wildcard DNS (so WordPress can manage creation of “virtual subdomains”) and link the domain names to WordPress.

    If you don’t have Strong reasons to use IIS, switch to an Apache server. If you aren’t well trained in IIS, managing IIS is harder than managing your site on Apache.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘One WordPress website two domains with IIS’ is closed to new replies.