Lean
Redirects
The redirect plugin that does nothing else.
One indexed query. Zero bloat. No lock-in.
~475 LINES OF CODE • GPLv2
// That's it. The entire redirect logic.
$row
=
$wpdb
->
get_row
(
$wpdb
->
prepare
(
"SELECT url_to, code
FROM {$table}
WHERE url_from = %s
LIMIT 1"
,
$path
)
);
wp_redirect
(
$row
->url_to,
$row
->code );