WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16557, comment 34


Ignore:
Timestamp:
01/09/2019 12:14:10 AM (10 months ago)
Author:
jivanpal
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16557, comment 34

    initial v1  
    1 I'd like to give my +1 on this; returning 404s for invalid URLs ought to be the actual behaviour, not this guessing nonsense. What's more, I have observed the guessing behaviour interfering with other plugins' intended behaviour.
    2 
    3 For example, with [https://wordpress.org/plugins/redirection/ John Godley's ''Redirection''] plugin, if `example.com/page` is defined to 301 to `example.net/some-other-page` by Godley's plugin, and `example.com/pagetwo` redirects to `example.com/page` as a result of the existing guessing behaviour exhibited by WordPress, then this ultimately results in `example.com/pagetwo` being redirected to `example.net/some-other-pagetwo`, which is utterly undesirable. Whether this particular example is to be seen as a problem with WordPress Core or Godley's plugin in this situation is debatable, but IMO it is unruly for WordPress to autonomously decide to make 301-redirects when the site admin has not explicitly set this up.
    4 
    5 Like @ravenswd, I'll be using @haukep's plugin for now (cheers btw), but I whole-heartedly expect a toggle for this guessing behaviour on the settings page in a future release of Core, hopefully with it ''disabled'' by default for new installations.
     1I'd like to give my +1 on this; returning 404s for invalid URLs ought to be the actual behaviour, not this guessing nonsense. Like @ravenswd, I'll be using @haukep's plugin for now (cheers btw), but I whole-heartedly expect a toggle for this guessing behaviour on the settings page in a future release of Core, hopefully with it ''disabled'' by default for new installations.