Multi Domains not working

This is the main site: https://*****t-dev.demo*** I want to add an additional domain using multi-domains. But after adding, it’s always redirecting to https://******.demo***.com/.

Though, if I add in domain mapping, the URL works fine then.

We are using cloudways as our host, and CloudFlare.

  • James Morris
    • WordPress Enthusiast

    Hello atnich,

    I hope you are well today. I apologize for the delay in response to this issue.

    I’ve been performing several tests on your site and I’m finding that Multi-Domains is working correctly.

    The reason you’re seeing the redirection from https://******.demo***.com/ to https://*****t-dev.demo*** when you just use the domain name (no subsite in the URL) is because that is the design of the plugin. You don’t want 2 domain names pointing to the same exact content. Since https://*****t-dev.demo*** is the Primary Domain of the Network, https://******.demo***.com/ will redirect to it, unless you have a subsite specified in the URL string, like: https://******.demo***.com/wpmudevtest2/. Then it will map appropriately.

    I created 2 test subsites. wpmudevtest and wpmudevtest2. wmudevtest2 is on the https://******.demo***.com/ domain. As you can see, it’s working properly.

    However, there is 1 problem and that’s with the login screen. The CSS resources are being loaded over http:// which is causing wp-login.php to load incorrectly. I need to look into this part further, but unfortunately, the access you provided does not allow me to make changes to your .htaccess file.

    Can you please provide me with the access details that will have sufficient permissions to change your .htaccess file?

    Please visit the Contact page and complete the form with the following information:

    Subject: “Attn: James Morris”

    In the Message box, please provide the following:

    – link back to this thread for reference

    – any other relevant urls

    – FTP credentials




    (and port if required)

    Best regards,

    James Morris

  • atnich
    • WPMU DEV Initiate

    Hi James,

    Reply sent through the contact form as requested… Also adding the non-ftp comments here:

    Thanks for your help – but unfortunately – I think what we are looking to do is being missed.

    What we specifically want — IS for 2 domains – to point the exact same website/content. (We know that we can have 2 domains that point to different sub-sites (we were able to get that working with domain mapping)… But this is not what we want or need here.

    As mentioned before, this is very urgent for us… so please reply as soon as humanly possible.

    Thank you,


  • James Morris
    • WordPress Enthusiast

    Hello atnich,

    Unfortunately, we never received your email message. In the interest of saving time so I can proceed as soon as possible, please just leave the requested details in the WPMU DEV Dashboard under Support Access in the quick notes box.

    Only you and our team will see this.

    Best regards,

    James Morris

  • James Morris
    • WordPress Enthusiast

    Hello atnich,

    OK! I’ve been digging into this further for you and I believe I’ve made some sense of this…

    What we specifically want — IS for 2 domains – to point the exact same website/content. (We know that we can have 2 domains that point to different sub-sites (we were able to get that working with domain mapping)… But this is not what we want or need here.

    The problem with the above is not Multi-Domains as such as much as it is WordPress. This is due to the redirect_canonical() function built in to WordPress.

    In short… Due to duplicate content penalties imposed by search engines, it’s common practice to never display 2 domain names with the exact same content, as you’re describing above. So, WordPress uses the redirect_canonical() function to ensure that what is set in your Site URL setting is what gets redirected to. That is why you’re seeing the redirection from infonet -> infonet-dev.

    Domain Mapping allows for multiple domains to be pointed to the same blog, but you can’t run this on the Primary Domain on a Multisite Network. Only on the Subsites. However, there is a workaround! :slight_smile:

    What you will need to do is as follows:

    * Rename the Primary Domain on the network to something like You can learn more about moving the domain name on a Multisite Network here:

    * Using Cloner, clone the new Primary Domain using the original Primary Domain (infonet-dev) as a Subsite on the Network (this will get your original content where you want it). You may need to create this subsite first and map the infonet-dev domain to it.

    * Use Domain Mapping to map infonet to the infonet-dev subsite

    * Add both domains to Multi-Domains as available hosts, but remove the new Primary Domain (signup). This will only allow you to use infonet and infonet-dev as the acceptable domain names for new site signups.

    I’ve tested this setup on my dev server and it worked quite well. I tested making several subsites on top of these mapped domains and had no issues. :slight_smile:

    I hope this clarifies a bit. Let us know if you have any further questions. We’ll be happy to help! :slight_smile:

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.