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.

    https://lcblog.lernerconsult.com/2012-wordpress-3-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.

    Thread Starter livebillal

    (@livebillal)

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

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘SUNRISE’,’on’);
    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);

    Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    Thread Starter livebillal

    (@livebillal)

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

    So, what are you asking?

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

    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.