subdomain wp-admin wp-login loop
-
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=htunsure 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.
- The topic ‘subdomain wp-admin wp-login loop’ is closed to new replies.