Support » Networking WordPress » Subdomains in multisite wordpress do not link to the right place

  • I have 2 virtualhosts on my current apache installation, associated to the domains dailymaker.net and dailymaker.com.br; for each one, I have configured a multisite wordpress with 3 subdomains (which are the same for both domains).

    The first one I set up was dailymaker.com.br:

    — apache configuration —

            ServerAdmin deleted email
            DocumentRoot /home/kleber/www/dailymaker_br
            ServerName dailymaker.com.br
            ServerAlias www.dailymaker.com.br
            ServerAlias *.dailymaker.com.br

    for each subdomain created with wordpress, I have a virtualhost configuration which looks like that:

            ServerName space.dailymaker.com.br
            ServerAdmin deleted email

    The other domain I set up was dailymaker.net:

            ServerAdmin deleted email
            DocumentRoot /home/kleber/www/dailymaker
            ServerName dailymaker.net
            ServerAlias www.dailymaker.net
            ServerAlias *.dailymaker.com.br

    for this domain, I also have virtualhost configurations for each subdomain created with wordpress which looks like that:

            ServerName space.dailymaker.net
            ServerAlias dailymaker.space
            ServerAlias www.dailymaker.space
            ServerAdmin deleted email

    The problem I am having now it’s when I try visit either the main page or dashboard for each subdomain from dailymaker.com.br, I am redirect to this url:

    http://www.dailymaker.net/wp-signup.php?new=space.dailymaker.com.br

    In the case of dailymaker.net, visiting the main page shows the default index page of apache, but the dashboard is shown normally.

    Someone can give a hint of what’s possibly going wrong here?

    • This topic was modified 6 months, 2 weeks ago by klebermo.
    • This topic was modified 6 months, 2 weeks ago by Jan Dembowski.
    • This topic was modified 6 months, 2 weeks ago by Andrew Nevins.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved from Installing WordPress to Networking WordPress. Also please don’t post email addresses here.

    What a mess! I think this is all related to the Apache setup which is way outside the scope of these forums.

    What seems to be happening is Apache is handing off the requests to the directories your vhosts are telling it to use which doesn’t always correspond to the directory containing the index.php and htaccess for the multisite.

    The best way to do that setup at the Apache level is one at a time starting with the main domain name. Not all installs and distros of Apache even require the domain name be recognized as it passes every request to the webroot.

    If you need more help then you might ask over at Stack Exchange or consult the Apache documentation or whoever supplied the Apache distro you are using (Turnkey, Bitnami, etc.).

    Better yet… if you have a half-decent Control Panel you can just tell the domain section of that to watch for your other domains and point them at the webroot for the multisite. Control panels make things somewhat easier compared to the cryptic nature of configuration directives.

    Do double check your domain mapping within WordPress also.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subdomains in multisite wordpress do not link to the right place’ is closed to new replies.