• Hello,

    I set up a multisite to run two different online stores from one WordPress install. The main domain dashboard and network dashboard both work fine, however, I am getting a 404 error when I try to access the dashboard for my subdomain. My subdomain site works fine from the front end, just not the backend.

    I found this article below that appears to be a solution, but I don’t know exactly where I should be pasting these codes as I am new to this and still learning.

    https://www.ads-software.com/support/article/debugging-a-wordpress-network/#mod_rewrite-not-working

    Also note, I did go into wp-config.php and change the code “define( ‘SUBDOMAIN_INSTALL’, true );” to “define( ‘SUBDOMAIN_INSTALL’, false );” and doing this gave me access to my subdomain dashboard, but when I logged out and tried to log back in I was only able to login into the subdomain, yet not the main domain so I switched it back.

    Any assistance is greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter nnirvana

    (@nnirvana)

    Ok, I partially figured it out. Now I am able to access the dashboard of my subsite, however, I have to be logged in to that site using /wp-admin and if I want to go back to my main then I have to login separately to that site. Can someone advise what to do so that one login gives me access to both my main site and subsite in my network?

    Here’s how I partially figured it out for anyone else with this issue:

    I noticed in my network sites that my main site was a www site but my subdomain was a non/www site so I changed my subdomain to a www site and it worked instantly. I was able to access both dashboards and edit them. If you are ok with that you can stop there, but I know most people do not type www when searching for a site so I checked to make sure the front end of each site was working with and without www…to my surprise it was not. The main site worked fine; my subdomain worked with www, but the non/www option led to my main site (a completely unrelated business) which I did not want.

    At this point I knew I needed to figure out a way to go into my code or settings to removed all “www”. The below article was extremely helpful:

    https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/

    I followed all the steps provided to completely change a domain, however, all I did was remove the “www” from each spot that one would use to completely change the domain.

    At first I could not access my subsite dashboard at all, now I can but just with an extra step.

    • This reply was modified 3 years, 4 months ago by nnirvana.
    • This reply was modified 3 years, 4 months ago by nnirvana.
    • This reply was modified 3 years, 4 months ago by nnirvana. Reason: updated to clarify
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t access subdomain dashboard in multisite network (404 error)’ is closed to new replies.