[wp-trac] [WordPress Trac] #30784: Subsites won't show 404 with default permalink structure

WordPress Trac noreply at wordpress.org
Fri Dec 19 17:10:51 UTC 2014


#30784: Subsites won't show 404 with default permalink structure
-------------------------+-----------------------------
 Reporter:  danhgilmore  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Permalinks   |    Version:  4.0.1
 Severity:  normal       |   Keywords:
  Focuses:  multisite    |
-------------------------+-----------------------------
 On my Multisite (subfolder) installation, I have every site set to use the
 default (ugly) permalinks. If I go to a subsite and add extra invalid
 characters after the site name, it displays the site, not a 404 error
 page.

 Example: If I type in domain.tld/sitename/EXTRACHARS it displays the
 content from domain.tld/sitename, yet keeps the /EXTRACHARS in all the
 links.

 I spoke with Andrea Rennick and she said that this happens because
 WordPress ignores anything after the sitename because pretty permalinks
 are not enabled.

 This all came up because our Google appliances were crawling millions of
 invalid URLs because .tld/sitename/EXTRACHARS returns a 200, instead of a
 404.

 Would it be possible to make it so that an invalid URL would return a 404
 instead of ignoring characters beyond the sitename when permalinks are set
 to default?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30784>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list