Domain Mapping in WordPress Multisite is failing (8 posts)

  1. semyou
    Posted 3 years ago #

    I have a network wordpress installation. The primary domain is domain1.com. I added a new subdirectory domain1.com/domain2 which works fine.

    Now I wanted to map the domain1.com/domain2 to domain2.com.

    Here is what I did:

    Forwarded domain2.com to the IP address of my server.

    I added an A record in the dns manager.

    In the sites-available for domain1.com, I added an alias to the apache server to make domain2.com point to domain1.com

    Restarted apache.

    Now domain2.com displays the content of domain1.com (the address bar still displays domain2.com).

    I activated domain mapping plugin in the network dashboard. IP is good in there.

    I went to domain2's admin dashboard > Tools > Domain Mapping and added a new primary domain domain2.com.

    Test domain2.com > It fails. No answer from the server. Test domain1.com/domain2 > It fails too. The failure is I get no answer from the server.

    Go back to domain2's admin dashboard > tools > Domain mapping and change primary domain to domain1.com/domain2.

    Now test domain2.com > It redirects to domain1.com/domain2 and works. Test domain1.com/domain2 and obviously it works.

    What's wrong?


  2. Change it from pointing to IP to pointing to the domain name?

  3. semyou
    Posted 3 years ago #

    Which domain name to use?

  4. The main domain :) domain1.com

    The IP should work (it's running fine on mine) though, so I wonder if you have a conflicting plugin.

  5. semyou
    Posted 3 years ago #

    It didn't solve the problem. I believe IP should work too. But both are not working right now. Something strange happened. When deactivated the plugin, it started working?! Any explanation?

  6. What other plugins are you running?

  7. semyou
    Posted 3 years ago #

    Other than WordPress Mu Domain Mapping,
    1. Adminer
    2. Search and Replace
    3. WordPress importer

  8. Try turning them all off.

    Also switch your theme back to TwentyEleven.

Topic Closed

This topic has been closed to new replies.

About this Topic