[wp-trac] [WordPress Trac] #16557: Ability to disable redirect_guess_404_permalink()

WordPress Trac noreply at wordpress.org
Wed Jan 9 00:02:42 UTC 2019


#16557: Ability to disable redirect_guess_404_permalink()
------------------------------------+-----------------------------
 Reporter:  msafi                   |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Canonical               |     Version:  3.1
 Severity:  minor                   |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by jivanpal):

 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.

 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.

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/16557#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list