I was searching the Net and also playing around WordPress to achieve my desired multisite installation, but I wasn’t successful yet. What I want to do is to have the network admin site installed on a sub-domain like www.example.com
(not example.com
) and other sites in the network on sub-domains like client.example.com
(not client.www.example.com
).
Is there any way to make it possible!?
Important Note: I want to map example.com
to a different server with different IP than www.example.com
and the rest of sites. Also, I don’t want to map each sub site address by hand. I want it to be automatic.
Server specification: I use nginx + php-fpm + fastcgi + centos 5.9.
Yes. Here are the instructions:
I actually have two separate WP sites setup as above, one is sub-domain and another sub-directory. One of the sites is hosting 200 different hostnames. The other is in development and only setup for two hostnames.
Currently I work always with Apache, but maybe you should set the constant
COOKIE_DOMAIN
to a empty value. Otherwise WordPress will always set it to your networkâs$current_site->domain
and you wonât be able to login into any of the other sites.the
www
on the domain is like a subdomain, confused and not helpful. Maybe you set the installation to the domain withoutwww
or add a rule to the.htaccess
of the installation, that all address will work with thewww
, like the source below.Also a hint to the configuration of nginx for subdomain on WordPress. But I have not tested, only find in this post.
You could achieve it changing your nginx configuration. I use Apache, so I’m not able to tell you how to do it. You may find your answer here. If you don’t you may better ask on Serverfault