Logging In rewrites siteurl for each multisite
-
I have multisite installed and two subdirectory sites.
The initial install was working, but now something about logging in causes the siteurl to be rewritten for all three sites.
Sometimes it happens when logging in through the main site, sometimes when through domain.com/site1
Instead of their respective urls, sometimes they all become https://www.domain.com, when they should be domain.com, domain.com/site1, domain.com/site2, domain.com/site3. Adding www causes an infinite loop for the main site.
Other times the /subsite just is removed, and only for one of the subsites, not the other.
Oddly, only the main site is affected publicly, while the others only prevent logging into the admin.
Deactivating plugins still lets the issue be created. All of them use the same plugins, and variations of a custom theme.
To fix temporarily, we can change it through the Network Admin unless the main URL gets rewritten to add www, then we have to change it in the db. But as soon as we login again it’s rewritten.
Thanks for any help!
- The topic ‘Logging In rewrites siteurl for each multisite’ is closed to new replies.