Linux 软件免费装

Disable URL Autocorrect Guessing

开发者 haukep
更新时间 2020年9月19日 16:55
PHP版本: 5.5 及以上
WordPress版本: 5.5
版权: Public Domain

标签

redirect url canonical autocorrect

下载

1.1c 1.0 1.0a 1.0b 1.0c 1.1 1.1a 1.1b 1.1d 2.0 2.0a

详情介绍:

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

安装:

  1. Upload disable-url-autocorrect-guessing.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

更新日志:

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.