• Resolved raelwa

    (@raelwa)


    TLDR version: I’m unable to access the dashboard for my subsite (subdomain configuration)/
    I’ve tried both through the network admin area as well as going to test.example.com/wp-admin, but they both redirects me to test.example.com/wp-login.php?redirect_to=ht

    unsure what to do with this, I looked in the wp-config file of my subdomain.
    the databases names are correct/relevant to the subdomain,
    but I noticed that my multisite settings are the exact same as my main domain settings. Shouldn’t they be somewhat different? like different path or ID?

    define(‘WP_DEBUG’, false);
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    I have a back up of wp-config and htaccess. But I’m not sure which things need to be changed… or if there are more things I should be looking at.

    more background if it’s needed:
    I have a main site, https://example.com
    I installed MS with subdomains configuration via the wp-config and htaccess files
    In my network admin dashboard, I added a subsite called “test” (test.example.com)
    I manually added the subdomain in cpanel as well, and made the root path in the “example.com” directory (NOT the main public_html directory)
    Then I pointed the A record to the subdomain with my domain host.
    back in cpanel, I cloned the install of example.com to my subdomain test.example.com
    Finally when I viewed the subdomain in the browser, I saw a WP site!! Until this point, the URL was not being recognized at all so I know this is major progress. However, the site I see is the basic wordpress fresh install (NOT a clone of my site).

    The bigger issue is that I can’t access the dashboard of my subsite.

Viewing 7 replies - 1 through 7 (of 7 total)
  • In short, you configured your subsite incorrectly. When you run WP multisite, you only need one instance of WP – i.e. no cloning. When you add your subsite in cpanel, the root path should be whereever your main WP instance is installed.

    Thread Starter raelwa

    (@raelwa)

    AH! You’re right. I did not need clone install.

    However, before I did the clone, the website was showing the cgi/bin file page. That’s what prompted me to clone and I forgot that multisite meant I only needed the one install.

    I uninstalled the clone, and when I try accessing the subsite dashboard, I get 404 error.

    > I uninstalled the clone, and when I try accessing the subsite dashboard, I get 404 error.
    You need to find out where the main WP root directory is… then assign your subsite to the same directory.

    Thread Starter raelwa

    (@raelwa)

    I’m looking at my files right now on the FTP server… this is what I see.

    >public_html
    >core folders…
    corefiles.php
    >example.com (the site I’m working on, was an add-on domain)
    >core folders…
    corefiles.php
    >subsite (my subsite for multisite)
    >cgi-bin
    >wp-snapshots

    Am I interpreting this right?

    the true root directory in this tree is for another site’s installation. I don’t want to edit those files.

    the root directory for my project is example.com

    Thread Starter raelwa

    (@raelwa)

    oops the spacing didn’t work as I had hoped–

    >public_html
    ..>core folders…
    ..corefiles.php
    ..>example.com (the site I’m working on, was an add-on domain)
    …..>core folders…
    …..corefiles.php
    …..>subsite (my subsite for multisite)
    ……..>cgi-bin
    ……..>wp-snapshots

    If your WP is installed in public_html -> example.com
    Then your subsite DocRoot should be the same folder. You need to define that in cpanel

    Thread Starter raelwa

    (@raelwa)

    thank you! this worked. I made the error when I created the subdomain in cpanel and in the field for the document root path, I included the subsite I was creating. D’oh!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘subdomain wp-admin wp-login loop’ is closed to new replies.