[wp-trac] [WordPress Trac] #21573: NOBLOGREDIRECT interfering with 404 errors
WordPress Trac
noreply at wordpress.org
Mon Jun 22 17:01:56 UTC 2015
#21573: NOBLOGREDIRECT interfering with 404 errors
----------------------------+-----------------------------
Reporter: bungeshea | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Bootstrap/Load | Version: 3.4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
----------------------------+-----------------------------
Comment (by johnjamesjacoby):
Consider also the name of this constant being indicative of it's
intention.
`NOBLOGREDIRECT`
Which translates to me as:
`Redirect to $here when WordPress performed a blog lookup, and found no
blog`
In @jeremyfelt's testing above, he's correct that the 4th test in the
subdomain group is, at the very least, unintended behavior, and should be
addressed.
I wonder, though, what happens (and what should happen) in a few other
cases:
* A subdirectory installation, but `http://noblog.bar.com` is visited
* A subdirectory installation, but `http://noblog.bar.com/hello-world/` is
visited
* A subdirectory installation where the main site is also a subdomain like
`http://central.wordcamp.org` but `http://central.wordcamp.org/noblog/` is
visited
* A subdomain installation where the main site is also a subdomain like
`http://central.wordcamp.org` but `http://noblog.wordacmp.org/hello-
world/` is visited
* A subdomain installation where the main site is in a subdirectory like
`http://foo.com/blog/` but `http://support.foo.com` is visited
There's a bunch of goofy permutations that start to come down to server
configuration, and WordPress can (should?) only make so many assumptions
about this, and intelligently redirect to the most natural location when
it doesn't find anything.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21573#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list