[Domain Mapping] Multisite with subdirectories

I have a multisite installation with subdirectories. I installed the Domain Mapping Plugin and created the A-Record at my hoster.

https://myprints.ch/ballonkarten/ maps to https://www.ballonkarten.ch/ but there I only see the defaultpage from my hoster. What else do I need to configure?

  • Kasia Swiderska
    • Support nomad

    Hello Nicolai,

    If you are using A record you need to have dedicated IP and that IP has to point to the main site of the network. So when you put your site’s IP in the browser it has to open the main site of your WordPress Multisite.

    If those two conditions are not true, then you can’t use A Record to point a domain to Multisite.

    Another way (when there is no correct IP to use) is to add those domains as add-on domains in cPanel and point them to the root directory where WordPress Multisite is installed. When they are pointed correctly to the installation then they can be mapped in Domain Mapping plugin.

    kind regards,

    Kasia

  • AS
    • New Recruit

    what plugin did you use? i am still looking for an updatet plugin for domainmapping or a step by step tutorial how to do domainmapping without a plugin. :tired_face:

    the articles on wpmudev are not clear enough or links to outdatet plugins.

    or an article with exact step by step and screenshots

    1- set up network

    2- set up the domainmapping – no plugins, not kinsta or something like that,

    setup with wp tools – what do i have to fill in the tabs in network sitesettings for

    Info Site Url?, Settings Site Url?, Home?

    3- what records in dns,

    4- what to add in wp-config ?

  • Patrick Freitas
    • Staff

    Hi AS

    Hope you are doing well.

    1- set up the network

    If are looking for the Domain Mapping I believe you already have the WordPress multisite, our host create it automatically by the way :wink:

    You can find on this link the documentation on how to implement the Multisite

    https://wordpress.org/support/article/create-a-network/

    This is a WordPress article and well explained.

    2- set up the domainmapping – no plugins, not kinsta or something like that,

    setup with wp tools – what do i have to fill in the tabs in network sitesettings for

    Info Site Url?, Settings Site Url?, Home?

    Since WordPress 4.5 the Domain Mapping is a native function on WordPress.

    To take the domain mapping, after the network and subsites created, go to the WordPress Network > All Sites > over the mouse on the site name and you will see the Edit option,

    Click on Edit and enter the new URL on Site Address (URL)

    References on:

    https://wordpress.org/support/article/wordpress-multisite-domain-mapping/

    3- what records in dns

    Before mapping, I do suggest you add your Records on the domain so when you do the mapping the site will be online.

    This step will really depend on your environment.

    For this, please, make sure your account has the option to add Add-on Domains.

    As my teammate said on the first reply, you will need to have a dedicated IP too.

    Check with your Hosting Provider about dedicated IP for your account.

    Once confirmed both information, you will add the A and CNAME records pointing to your dedicated IP. It will be similar of our hosting so you can see some example on how to do it following this documentation https://premium.wpmudev.org/docs/hosting/dns-and-domain-management/

    The A record pointed to your website you can map it manually or using the plugin.

    If you don’t have a dedicated IP, and well, if your hosting has Auto SSL, you can use the second alternative that my teammate suggested

    “Another way (when there is no correct IP to use) is to add those domains as add-on domains in cPanel and point them to the root directory where WordPress Multisite is installed. When they are pointed correctly to the installation then they can be mapped in Domain Mapping plugin.”

    Adding those on Add-on domain, most of the servers ( cPanel servers ) that has Auto SSL will generate, so your subsite domain will run under HTTPS too.

    If you are looking to make everything easier, I do suggest our hosting, the hosting portal is really simple to use and the documentation page is very complete.

    https://premium.wpmudev.org/hosting

    Another great feature is to use WP ultimo plugin, this plugin also has the domain mapping function, you can find a discount for this plugin on our Partner Page.

    https://premium.wpmudev.org/partners/

    Let us know if you need any further help on mapping,

    Also, feel free to contact us on Chat and we can help you with mapping, we are 24/7

    Best Regards

    Patrick Freitas

  • AS
    • New Recruit

    thx very mich for your detailed tutorial..
    one more question to the tabs:
    i only have 4 tabs – you have 5
    1. is the site url or the new domain
    2. what to fill in the 4th tab in settings for siteurl and home?
    3. you have a 5th tab for aliases?

    thx for your time

  • Patrick Freitas
    • Staff

    Hi AS

    Hope you are doing well.

    1. is the site url or the new domain

    You will replace the Site Address (URL) from your default URL E.g: https://subsite.mysite.com or https://mysite.com/subsite to https://newsite.com

    2. what to fill in the 4th tab in settings for siteurl and home?

    You don’t need to switch any setting on 4th, only on the 1st Info tab.

    3. you have a 5th tab for aliases?

    That extra tab is for Domain Mapping from the wp-ultimo plugin, the one that I suggested on previous reply:

    Another great feature is to use WP ultimo plugin, this plugin also has the domain mapping function, you can find a discount for this plugin on our Partner Page.

    https://premium.wpmudev.org/partners/

    By default that tab doesn’t exist.

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.