WP Manifestindependent plugin directory
manifest / seo / hm-redirects

HM Redirects WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA #10 in SEO & Metadata

Fast and scalable redirects plugin for WordPress

★ 29stars
264kcomposer installs
0.7.5latest · 1 year ago

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/humanmade/hm-redirects/archive/refs/heads/master.zip

On Packagist as humanmade/hm-redirects:

composer require humanmade/hm-redirects
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Allows to redirect one path to another path on the same domain.

Architecture

Redirects are stored as a custom post type and use the following fields:

  • post_name to store the md5 hash of the From path. This column is used because it is indexed, and allows fast queries. md5 is used to simplify the storage.
  • post_title to store the From path.
  • post_excerptto store the the To path.

Tips

This plugin uses wp_safe_redirect() to redirect. You will have to whitelist your redirect target domains using WordPress' allowed_redirect_hosts filter, otherwise the redirect will not work. One way to get a list of redirect target domains is to run the WP-CLI command: wp hm-redirects find-domains. Another is to add them dynamically just-in-time using the filter hm_redirects_matched_redirect.

Attributions

Props for the data storage approach to VIP's WPCOM Legacy Redirector.

Contributing

Before tagging a release

Running tests

Currently the plugin's automated tests run against PHP 7.4 and WP 5.8. PHPUnit doesn't need to be installed, however:

composer install
docker run --rm -e WP_VERSION=5.8 -v $PWD:/code humanmade/plugin-tester

Releases

18 releases.

Tag
Published
0.7.5 latest
May 21, 2025 1 year ago
Mar 20, 2025 1 year ago
Apr 22, 2024 2 years ago
Aug 31, 2022 4 years ago
Mar 15, 2022 4 years ago
Mar 15, 2022 4 years ago
Jan 21, 2022 4 years ago
Jan 21, 2022 4 years ago
Nov 8, 2021 4 years ago
Nov 8, 2021 4 years ago
Nov 4, 2021 4 years ago
Nov 4, 2021 4 years ago
May 25, 2020 6 years ago
Jun 3, 2019 7 years ago
Mar 28, 2019 7 years ago
Nov 8, 2018 7 years ago
Oct 24, 2018 8 years ago
Jun 6, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

HM Redirects 0.7.5 · audited by WP Registry

No security issues found.

Audited release
0.7.5
Findings
none
Worst severity
—
Content hash
f43e2bac9871eec4d1f2fea3…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.