WordPress MU Domain Mapping
[resolved] Mapping domain.vic.gov.au/somepath to a MU site ID (5 posts)

  1. nick.mcelligott
    Posted 2 years ago #


    I’m wondering if anyone can help me, or point me in a direction…
    I’m trying to http://www.mydomain.com/somepath1 to a site in my MU setup using the Domain Mapping plugin.

    I’ve set the the mapping so that;

    are all mapped to the correct site ID. I’ve got the owners of the domain to point domain.vic.gov.au/somepath to the server IP.

    However, when I go to the URL domain.vic.gov.au/somepath I get routed to my servers default WPMU site.

    Any clues at all? Thanks for such a great plugin!


  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    Domain mapping is for mapping domains vs mapping domains & paths. Due to the way DNS works you cannot direct paths to a site.

    For what you are trying to do you need to use something like squid or varnish to front end the path and use a WP install to be the back end.

  3. nick.mcelligott
    Posted 2 years ago #

    Hi Ron,

    Thanks for your quick response.

    I think I will look into setting up Varnish, or nginx, as I'm using Bitnami and it looks relatively easy to setup.

    Do you have much experience with these tools? It seems for nginx I can use the map module.

    Thanks again Ron.


  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    I'm in process of migrating to my third nginx server. The previous two had 2 - 2 1/2 years each.

    If you work through the process of setting http://wordpress.org/plugins/network-nginx-proxy-cache-purge/ up, then you could direct a specific folder to a different upstream provider.

  5. nick.mcelligott
    Posted 2 years ago #


    Thanks again for the quick response. Yep, I've looked at that link already and it will probably be my next port of call.

    I'm a bit confused though. If I go to the URL somedomain.vic.gov.au/somepath, this is routed to my MU server.

    Couldn't I just check to see if $_SERVER[ 'HTTP_HOST' ] is somedomain, and if so route that to myblog.myMU.com ?

    Really appreciate you time,


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


No tags yet.