WordPress MU Domain Mapping
One WordPress website two domains with IIS (8 posts)

  1. livebillal
    Posted 2 years ago #

  2. lernerconsulting
    Posted 2 years ago #

    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.


    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.

  3. livebillal
    Posted 2 years ago #

    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 = http://www.weddingsmadeinitaly.co.uk
    Second domain = http://www.weddingsitaly.co.uk

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'www.weddingsmadeinitaly.co.uk');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    You cannot map a domain to the main site.

  5. lernerconsulting
    Posted 2 years ago #

    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.

  6. livebillal
    Posted 2 years ago #

    Is there any plugin that I can add main domain?

  7. lernerconsulting
    Posted 2 years ago #

    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 http://www.weddingsmadeinitaly.co.uk you just use it.

    So, what are you asking?

    Are http://www.weddingsmadeinitaly.co.uk and http://www.weddingsitaly.co.uk 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?

  8. lernerconsulting
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic