WordPress multisite and redirect

Dr I asked:

I come to you because I’m facing a really strange effect on my hosting.

I currently manage a server contening a NGINX/PHP-CGI and a wordpress multisite in it.

My sites are created using subsite.domaine.tld, for now, my three subsites are correctly accessibles through the url:

subsite.domain.tld.

My goal is to allow my subsite on the host domain to be access through their respective unique domain.

For exemple:

www.domainA.com would redirect to subsite1.host.domain.tld.

If I do that using the following setting on the domainA Public DNS:

www 10800 IN CNAME subsite1.host.domain.tld.

When I try to access www.domainA.com I don’t go to subsite1.host.domain.tld but instead I’m redirect to the WordPress ROOT site where I create my Network (host.domain.tld).

Is there a trick to deal with?

My answer:


You need to use the WordPress domain mapping plugin. Otherwise WordPress has no idea which blog to use to service the request.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.