Sometimes this is a caching issue. Have you tried clearing caches?
Yes, I tried that. Any other thoughts, Multisite Heroine? I need one of those right now. :-}
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.
What’s in your .htaccess?
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.
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?
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.
Bleah, yeah, this needs to be checked on the server to see if there’s a subdomain redirect on there causing this.
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