WP Manifestindependent plugin directory
manifest / seo / tabaix-single-hop-redirects

Tabaix Single-Hop Redirects

WordPress plugin: sends two legacy URLs straight to their live posts in a single 301 hop, before WordPress core's old-slug redirect.

★ 0stars

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/tabaix/tabaix-single-hop-redirects/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.

A WordPress plugin that sends two legacy URLs straight to their live posts in a single 301 hop. WordPress core redirects these old slugs to an intermediate duplicate post before the Redirection plugin ever matches (the Redirection entries for these sources show 0 hits), so this plugin checks the exact request path on init — before the core canonical/old-slug redirect — and redirects directly. Deactivating this plugin simply restores the previous two-hop behaviour; nothing is edited or deleted.

Built for tabaix.com. Free to use and share (GPL-2.0-or-later).

Features

  • Single 301 hop — the two legacy URLs below go directly to their live posts, with no intermediate stop.
    • /shower-filter-hard-water-saudi-arabia/ → /stop-hard-water-hair-loss-saudi-arabia-shower-filter/
    • /water-pump-dispenser/ → /best-usb-water-pump-dispenser/
  • Runs first — checks the exact request path on init (priority 0), before WordPress core's canonical/old-slug redirect can intercept it.
  • Safe by design — never interferes with admin, AJAX, REST or cron requests, and only handles GET requests.
  • Nothing stored — no options, no database writes. Deactivating the plugin restores the previous behaviour instantly.

Requirements

  • WordPress. No extra libraries — the plugin only uses core WordPress functions.

Installation

  1. Download the latest release (or clone this repo).
  2. Upload the tabaix-single-hop-redirects folder to /wp-content/plugins/, or in WP Admin go to Plugins > Add New > Upload Plugin and install the ZIP.
  3. Activate Tabaix Single-Hop Redirects. There is no settings page — it works as soon as it is active.

Usage

Visit one of the two legacy URLs and it redirects (301) straight to the live post. To redirect different URLs, edit the $map array in tabaix-single-hop-redirects.php — one line per redirect, exact path in, exact path out (both with trailing slashes).

FAQ

Why not just use the Redirection plugin? That was the first try. WordPress core redirects these old slugs to an intermediate duplicate post before the Redirection plugin ever matches, so its rules for these sources recorded 0 hits. This plugin runs earlier (init, priority 0) and wins the race.

Will deactivating break my links? No. Deactivating restores the previous two-hop behaviour; the posts themselves are untouched.

Changelog

1.0.0

  • Initial public release: the two legacy-URL redirects, init priority 0, admin/AJAX/REST/cron bypass.

License

GPL-2.0-or-later — see https://www.gnu.org/licenses/gpl-2.0.html