| 开发者 | dropndot |
|---|---|
| 更新时间 | 2026年11月26日 15:08 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
http/https URL./wp-json/redirection-manager/v1: single-URL lookup, rule list, rules version, exports, a token-authenticated 404 reporting endpoint, and administrator-only management endpoints.ETag / If-None-Match support (HTTP 304) driven by a rules version that changes whenever a redirect changes.redirectionManager query returns enabled global redirects (newest first) with optional limit/offset paging.redirectType and redirectUrl fields on all public post types./wp-content/plugins/redirection-manager, or install the plugin through the WordPress Plugins screen.Query the redirectionManager field to get enabled global redirects (newest first, up to 5,000 per request; use the limit and offset arguments to page through more). Each redirect exposes id, sourceUrl, destinationUrl, statusCode and queryMode. You can also query individual posts for the redirectType and redirectUrl fields. Fragments written against the 1.0.0 RedirectionManager type still work.
GET /wp-json/redirection-manager/v1/lookup?path=/old-page/ resolves one URL exactly as the site does (post-level redirects first) and returns matched, status_code, destination (a path for internal targets, a full URL for external ones), query_mode and the matching rule or post ID.GET /redirects?per_page=1000&page=1 lists enabled redirects; GET /version returns the current rules version.ETag; send it back as If-None-Match to get a 304 Not Modified with no database work.POST /404 with path (and an optional referrer) records a 404 seen by your frontend. Send the API token from Tools → Redirect Manager → Settings as X-RM-Token: <token> or Authorization: Bearer <token>.POST /redirects, PUT/PATCH/DELETE /redirects/<id> and GET /redirects?status=all require an administrator (for example via an application password).Each delivery sends X-RM-Timestamp, X-RM-Delivery and X-RM-Signature: sha256=<hex>, where the signature is HMAC-SHA256 of timestamp + "." + delivery + "." + raw body using your signing secret. Compare in constant time, reject timestamps older than 5 minutes, and ignore delivery IDs you have already processed. Failed deliveries are retried.
Yes. Enter a full URL starting with https:// or http:// as the destination. A path such as /new-page/ redirects within your own site.
A source without a query string matches any query string. New redirects pass the visitor's query string (for example ?utm_source=newsletter) on to the destination; choose "Ignore" to drop it. Redirects created before 2.1.0 keep their previous behaviour. To match one specific query string, include it in the source, for example /page/?id=5.
Yes. Add redirection-manager-410.php (or 410.php) to your theme, or use the redirection_manager_410_template filter.
No. Deactivating never deletes anything, and deleting the plugin keeps your redirects unless you first enable "Delete all redirect data when the plugin is uninstalled" under Tools → Redirect Manager.
The plugin copies your redirects table to a backup table before upgrading it. Nothing is deleted. Rules that cannot be used as-is (duplicates, unsupported status codes or invalid URLs) are disabled and marked "Needs review" so you can fix them. Once everything checks out, delete the backup table from the notice on the Redirect Manager screen.
Yes. The post-level redirect meta box appears on WooCommerce products, and related-content detection recognizes product URLs.
redirection-manager/v1) with single-URL lookup, rule list, rules version, exports and administrator management endpoints.redirectionManager returns enabled redirects only, capped at 5,000, with optional limit/offset; added queryMode; post-level fields now register on custom post types with custom GraphQL names.