• Resolved braymond64

    (@braymond64)


    I have a multisite installed using subdomains — the main site is sonicsinc.com and the other sites are jp.sonicsinc.com and tw.sonicsinc.com. I upgraded to 4.01, and now both jp.sonicsinc.com and tw.sonicsinc.com redirect back to sonicsinc.com. I checked all of the multisite settings and they look fine. I also disabled all plugins to see if there were any conflicts there, but I still had the issue. Also, the wpconfig.php and .htaccess files are the same as before.

    Does anybody know what the problem might be? I REALLY don’t want to roll back to an earlier version if I don’t have to.

    Thanks in advance!
    braymond

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Sometimes this is a caching issue. Have you tried clearing caches?

    Thread Starter braymond64

    (@braymond64)

    Yes, I tried that. Any other thoughts, Multisite Heroine? I need one of those right now. :-}

    Moderator Bet Hannon

    (@bethannon1)

    Just checking: this is an existing multisite install that did not have this redirection problem before? Or it’s a new install?

    And you have verified that there is no problem with how the wildcard subdomains are setup at the hosting company?

    If you want to post your .htaccess here, we can look for anything that could be going on there.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What’s in your .htaccess?

    Thread Starter braymond64

    (@braymond64)

    This is my .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    I’ve requested the login for the hosting company and I’m hoping to get it soon. This is an existing multisite and it didn’t have issue before.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Hrm. That’s the whole thing? And you’ve been using Multisite since Pre WP 3.5?

    http://jp.sonicsinc.com/
    302: Temporary redirect to http://sonicsinc.com/
    Server IP Address: 206.71.190.156
    http://sonicsinc.com/
    200: HTTP/1.1 200 OK

    So something’s putting in a temp redirect.

    Interestingly http://asdasdas.sonicsinc.com/ is NOT throwing that error. How did you set up the subdomains on your server?

    Thread Starter braymond64

    (@braymond64)

    Yep, that’s the whole thing.

    I didn’t set up the subdomains. They were set up before I started working with the company. I’ve requested the login information, but people are out for the holidays. I should definitely get the information tomorrow, but I’m hoping for sooner.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Bleah, yeah, this needs to be checked on the server to see if there’s a subdomain redirect on there causing this.

    Thread Starter braymond64

    (@braymond64)

    I hired somebody to resolve this. In case it’s helpful to others, below are the steps he took to make it work again.

    1. It came down to the get_site_by_path( $domain, $path, $segments ) function defined in wp-includes/ms-load.php

    2. By var_dump’ing the data, I found out it was running a final SQL query to look for:

    SELECT * FROM wp_blogs WHERE domain = ‘jp.sonicsinc.com’ AND path = ‘/’

    3. In the wp_blogs table, wp_blogs.path column was empty for both subdomains.

    4. I updated this via Network Admin > Sites > Edit Site (update path from blank to a forward slash).

    Thanks everybody for your replies!
    braymond

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Upgrading to 4.01 broke multisite’ is closed to new replies.