Does my MU install need to be on root for plugin to work?

Server: Bluehost (shared)
IP: Dedicated
WordPress install: Multisite, but not on the root directory
Plugin: Installed correctly (according to instructions)

My site works great, except for when I try to map a domain to it. Instead of directing the domain to, the site I want, it directs it to the site on the root directory (which by the way is not WP).

Does my install need to be on the root in order for domain mapping to work?

MU Site:


  • Timothy Bowers
    • Chief Pigeon

    Hey chrisegg.

    I've never tried anything else other than root personally to be honest, but I would say yes.

    This is because the domain being mapped has its A record pointing to the Multisites IP. If its not in the root folder then WordPress won't catch that domain and thus will not map it. WordPress and this plugin wouldn't even know that the domain is pointing to the IP because the install is in a sub folder.

    Can you move it up to the root?

    Take care.

  • chrisegg
    • WPMU DEV Initiate

    Ok, FYI for anyone else who has the same problem/question and finds this post!

    To make it work:

    Step one: setup Dedicated IP
    Step two: from bluehost cpanel, go to "Addon Domains" -> select and add your domain and direct it to the subdirectory where your wordpress multisite installation is.
    Step three: install and configure Domain Mapping plugin
    Step four: add domain to the site you want it mapped too.

    That is it...

  • Timothy Bowers
    • Chief Pigeon

    Yup, providing the domain can land on the WordPress install then in theory it could work.

    If the domain continued to land at the directory above where there is no WordPress install then WP would not know about the domain.

    Your way of making the domain an Addon does not require a dedicated IP, as cPanel handles that aspect.

    The issue will come when you do this with a third party DNS unless they point their NS to you and then you add their site to your cPanel Addon domains. More manual work there though.

    Anyway, glad you got it working for you. :slight_smile:

    Take care.

  • karmikovic
    • Design Lord, Child of Thor

    Hey I was trying to do this here...(except with WildCard subdomains Multisite)

    I can use my hosting (Godaddy) (ugh!) to add subdomains and point them to the directory, however when trying to add a wildcard subdomain setup to a directory other than root, the addon/subdomain method (and yours mentioned above) doesn't work for wildcards, as I would have to manually add them per site.

    (if you found a way to get the wildcards to work please let me know)

    I would say some .htaccess trickery would be the only way to handle this...

    I did find the following information for directing the main domain (in this case)
    to a subdirectory. If anyone knows how to modify it for multiple domains with wildcard ability I will give you a million dollars!

    Here is the .htaccess code template:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?main\$ [NC]
    RewriteCond %{REQUEST_URI} !^/sub\-folder/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /sub-folder/$1
    RewriteCond %{HTTP_HOST} ^(www.)?main\$ [NC]
    RewriteRule ^(/)?$ sub-folder/index.php [L]

    (just kidding about the million dollars!)

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.