The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WordPress MU Domain Mapping
Multisite Domain Mapping - www alias, Primary Domain (7 posts)

  1. jethin
    Posted 5 years ago #

    Hopefully this one will prove to be simple. I have the domain mapping plugin up and running on a multisite network (subdfolders). However, most of the hosted sites have multiple domains -- specifically with and without www, like so:

    1) http://mysite1.com (primary)
    2) http://www.mysite1.com (alias for above)

    The DNS records are set up and point to our WordPress install. However, while the first URL resolves properly (via domain mapping), the second goes to the main WP subfolder URL.

    So, what's the best way to manage these domains? Multiple domain entries in the mapping plugin? If so, would one be primary and the other not? What about an .htaccess solution? Other ideas?

    BTW, can someone explain to me what "primary" domain means in the context of this plugin? Currently I have this feature disabled, but perhaps it would prove useful (provided I understand exactly what it does).



  2. Primary means main - and the plugin is doing exactly what it is supposed to.

    It's for mapping *ONE* domain as the main url. The rest of them (the alisases) are different domains ro whatever to get to the same spot.

    But only one can be the main, canonical, prevalent, central, official url.

    If you are looking for a plugin to make one blog look like 20 different websites with the exact same content .... this isn't it.

  3. jethin
    Posted 5 years ago #

    OK. So then to clarify, the best way to map both the "www" and non-www versions of a domain name to the same non-primary, domain mapped site is to create separate records in the plugin for each address?

    This is a simple and regularly done convention on the web. I certainly don't want to "make one blog look like 20 different websites." I just want a simple way to enable my domain mapped sites to resolve properly whether a user types in an address with or without a www prefix.

  4. Adding the www as an alias to the mapped one *should* work.

    Did you remember to also park it like you did the non? Could be why it;s punting to the main.

  5. jethin
    Posted 5 years ago #

    FWIW I ended up redirecting the www prefixed site to the non-www domain in our .htaccess file. I might recommend that a feature to handle domain aliases be added to the plugin in the future.

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 5 years ago #

    The domain mapping plugin will respond to both the www and non www domain if the non www is the mapped domain. When you map it that way the www automatically redirects to the non www.

    I'm not sure why it wasn't working for you other than a host configuration issue or you had an old version of it.

  7. I might recommend that a feature to handle domain aliases be added to the plugin in the future.

    It's already in the plugin. Look at the subsites tools -> domain mapping menu, where you can put more than one there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic