• Hi,

    I created a subdomains network.
    Now I’m trying to create my first subsite.

    On the host’s side I added in cPanel->subdomains ‘*’ (as a wildcard) and the specific subdomain name.

    Then, on the WordPress side in wp-admin I created a new site in the netwrok. But when I tried to preview the site I got a “server error” message.
    So I talked to the support people of the host and they said that the folder with the subdomain’s name is empty and that I should put another WordPress installation there.
    I did so and then I did manage to see the subsite but I can’t login to it’s wp-admin. I keep being redirected to the main site’s administration.

    What is wrong with my setup?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter amitstreak

    (@amitstreak)

    Found the problem.

    I was using the same DB for both the main site and the subdomain.
    Once I created a seperate DB for the subdomain everything worked properly.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That’s … not multisite.

    Multisite you totally can run on the same DB. What you did was make a second install, and your host is a bit daft for suggesting that without bothering to read the multisite directions.

    Thread Starter amitstreak

    (@amitstreak)

    OK.
    Before I asked the host’s people I followed the “Create a Network” instructions myself.
    When I didn’t put another wordpress installation in the directory for the subdomain site than I got a server error when opening the site.
    So what’s the path to solving this if not putting another installation?

    Thread Starter amitstreak

    (@amitstreak)

    BTW, now that I have a second WP installation and a second DB everything seems to be working fine.
    I have the subdomain site in the site list under network management.

    But I’d still love to hear your solution…

    Thread Starter amitstreak

    (@amitstreak)

    OK, it’s not “I’d love to hear your solution” anymore.

    I understand now that the way I made it work is incorrect.

    Can you explain how do I create a subdomain site under the same WP installation and DB?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    When I didn’t put another wordpress installation in the directory for the subdomain site than I got a server error when opening the site.

    Well without seeing the error you got for wildcard subdomains, my best guess is you didn’t actually set them up correctly.

    On the host’s side I added in cPanel->subdomains ‘*’ (as a wildcard) and the specific subdomain name.

    See that’s not right ?? * is a fine name, sure, but where did it point to? It should point to /public_html/ (which is where you should have installed WP).

    Thread Starter amitstreak

    (@amitstreak)

    I really appreciate the help.

    In cPanel->subdomains where I added * it automatically added this: Document Root: /public_html/wildcard.

    Also, I added the name of the subdomain itself, for example “biz”, so in cPanel->subdomains what was added was /public_html/biz.

    I did install the main site under public_html.
    After setting up the network, I created a new site from the administration panel and WordPress automatically created the dir “biz” under public_html, and in this dir I put the second WP installation.

    I can repeat the process and let you know what was the exact error message.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    In cPanel->subdomains where I added * it automatically added this: Document Root: /public_html/wildcard.

    Right. That’s the problem. /public_html/wildcard

    That should be /public_html/

    Nothing else.

    Thread Starter amitstreak

    (@amitstreak)

    Amazing.

    Worked like a charm.
    I wonder why they’d make the “wildcard” addition automatic.

    Anyway, I planned on fighting this issue all night long and you solved it in a sec.
    Thank you so much.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Glad to help ??

    I do wonder why on earth any host makes the wildcard addition. *tsk* Silly hosts.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Subsite's administration redirects to main site's administration’ is closed to new replies.