• Resolved 5t3ph

    (@5t3ph)


    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WP shouldn’t be rewriting those URLs.. I’d put it down on a plugin or theme. But that really is obscure.

    Chip Bennett

    (@chipbennett)

    What @ipstenu said…

    To troubleshoot, I would:

    1) Deactivate all Plugins (don’t forget mu-Plugins)
    2) Check .htaccess for odd rewrite rules

    I can’t really think of anything else that would be causing this.

    Thread Starter 5t3ph

    (@5t3ph)

    Thanks for your comments, guys. We’re going to try to move to a development server to check through plugins.

    Any developments on this? I’m having the same problem. We didn’t have this issue in dev, only started happening once we went live.

    Right now I’m just thinking of forcing people to login using the main site, or editing the wp-admin files to get the correct url.

    Apparently we had left a piece of code in the wp-config:

    define('RELOCATE',true);

    We must have left it in there when we were moving the site to a new domain.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logging In rewrites siteurl for each multisite’ is closed to new replies.