WP Manifestindependent plugin directory
manifest / seo / redirect-matching-postname

Redirect Matching Postname

WordPress plugin that redirects 404s to the post with the same name as the requested URL.

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/evermade/redirect-matching-postname/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Plugin to redirect 404s to the post with the same name as the requested URL. WordPress does this natively to some degree but not reliably.

When to use this plugin?

  • When changing permalink structure from /%postname%/ to something else like /%category%/%postname%/
  • When you cannot do redirects in other ways like using for example Redirection plugin, NGINX configuration or custom PHP code.

Installation

  • Insert this directory into /wp-content/plugins/ (you can also download it as zip file through WordPress Plugin view)
  • Activate

Notice that this plugin won't save anything to your installation so you need to keep this plugin active to keep these redirections working.

Customization

You can change what post types are searched by setting filter em_redirect_matching_postname/post_types.