Disable URL Autocorrect Guessing
Disable URL Autocorrect Guessing
Description
This plugin disables WordPress’ URL autocorrection guessing feature.
If you for example enter the URL http://www.myblog.com/proj you won’t be redirected
to http://www.myblog.com/project-2013 anymore.
This plugin is based on the example here: https://core.trac.wordpress.org/ticket/16557
Installation
- Upload
disable-url-autocorrect-guessing.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Reviews
Great Plugin
By reystub on January 11, 2024
This plugin works well on my WordPress 6.4.2 site
Thanks Hauke, this is very helpful for the very confidential site I'm working on.
Great!
By Liang (liang1216) on November 27, 2021
Perfect
By Harry (dibbyo456) on September 16, 2021
it works
By bloup on March 13, 2021
Must have plugin works in WP 5.4.2
By ctrlaltdelete on July 16, 2020
add_filter( 'do_redirect_guess_404_permalink', '__return_false' );
https://make.wordpress.org/core/2020/06/26/wordpress-5-5-better-fine-grained-control-of-redirect_guess_404_permalink/
Until then. Must have!Not working for me
By alikgriffin on October 19, 2017
Works Perfectly
By Andy Mercer (Kelderic) on March 29, 2017
Perfect
By Jean Rochard (benefacere44) on January 30, 2017
Should be built-in option
By ravenswd on September 3, 2016
Works perfectly. Thank you.
Changelog
2.0
Since ticket https://core.trac.wordpress.org/ticket/16557 is solved now, the implementation
was changed to use the filter do_redirect_guess_404_permalink as provided in the example here:
https://make.wordpress.org/core/2020/06/26/wordpress-5-5-better-fine-grained-control-of-redirect_guess_404_permalink/
1.1
Added check for $_GET['p'] to allow rel=shortlink according to comment of user esemlabel:
https://core.trac.wordpress.org/ticket/16557#comment:28
1.0
First (and possibly last) version.