Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#27987 new defect (bug)

Multisite subdirectory getting 404

Reported by: beccawitz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.9
Component: Networks and Sites Keywords: reporter-feedback
Focuses: multisite Cc:


The site is using Multisite with subdirectories and lowercase path /he as the directory.
The main site is working fine, but when I go to the subdirectory's homepage, I get a 404 error.
The Dashboard url www.site.com/he/wp-admin works but I can't see the correct Dashboard - it shows me the main site's Dashboard instead.

I tried re-saving the permalinks but it didn't help.
The domain is with www
Using WordPress version 3.9

Thank you!

Change History (11)

comment:1 @SergeyBiryukov11 months ago

  • Component changed from General to Networks and Sites

comment:2 @AnthonyJKenn11 months ago

Sounds like the exact duplicate of #27866, except with lowercase rather than my mixed case directory pathnames.

Last edited 11 months ago by AnthonyJKenn (previous) (diff)

comment:3 @jeremyfelt11 months ago

  • Keywords reporter-feedback added

Hi @beccawitz, thanks for the report.

A couple things that may help distinguish this from #27866 or #27927:

  • Is DOMAIN_CURRENT_SITE configured as site.com or www.site.com?
  • IS PATH_CURRENT_SITE configured as /?

Is this a fresh installation of WordPress 3.9 or an upgrade?

comment:4 @beccawitz11 months ago

define('DOMAIN_CURRENT_SITE', 'www.site.com');
define('PATH_CURRENT_SITE', '/');
It was an upgrade.
Thank you.

comment:5 @jugoretz11 months ago

Not sure if this helps or just makes things more confusing, but I am having (what looks like) the same problem. www.mysite.com/he redirects to main site, but mysite.com/he works fine (as it always has).

Mine is an upgrade, too, but this was originally (way back when) a multiuser install, upgraded consistently over time, so my wp-config does not even have DOMAIN_CURRENT_SITE or PATH_CURRENT_SITE

comment:6 @Ipstenu11 months ago

jugoretz, see #27927 - I think the force non-www htaccess rule might help.

beccawitz - Can you look in your database under wp_site and wp_blogs. Does your domain have the www in there?

comment:7 @jugoretz11 months ago

Thanks very much, Ipstenu. That seems to have done the trick for my problem.

comment:8 @beccawitz11 months ago

@Ipstenu, in wp_blogs, the main domain has www but I see the subsite does not have www.
In wp_site, there is no www.

comment:9 follow-up: @Ipstenu11 months ago

@beccawitz - the www usage should be consistent. I would make them all use www in your case since the wp-config has www.

comment:10 in reply to: ↑ 9 @beccawitz11 months ago

@Ipstenu, yes it should - thank you for your help!

Replying to Ipstenu:

@beccawitz - the www usage should be consistent. I would make them all use www in your case since the wp-config has www.

comment:11 @bi0xid11 months ago

Hello, @beccawitz.

I had the same problem installing with Nginx. With a basic Apache configuration it's working without a problem in a subdirectory.

Note: See TracTickets for help on using tickets.