| 开发者 | domclic |
|---|---|
| 更新时间 | 2026年8月14日 22:04 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
.htaccess file.
Two redirect modes are available per rule:
301 Moved Permanently response to the destination URL.<meta http-equiv="refresh"> tag or a JavaScript setTimeout() call, selectable per rule.
What each setting does
Every Redirect Rule has the following fields:
https:// scheme. It may point to another page on your site or to an external address.301; checked switches the rule to the delayed mode and reveals the two settings below.Meta Refresh (works without JavaScript) or JavaScript.42 refers to different content on every site.
effortless-smart-page-redirects folder into /wp-content/plugins/.301 redirect, or check it and set the delay method and delay if you want your analytics to record the visit first.The immediate mode sends a 301 Moved Permanently header before anything is rendered, which is what search engines expect for a permanent move. The delayed mode loads the page first, shows a spinner overlay, and then moves the visitor to the destination. Use the delayed mode when you need scripts on the page — analytics in particular — to run before the visitor leaves.
It is not tied to a specific tool. The plugin simply keeps the visitor on the page for the delay you configure, so any script that is already loaded on that page, including Matomo, Google Analytics 4 and Google Tag Manager, has that time to send its request. Whether a given pageview is recorded depends on how quickly that script loads on your site; increase the delay if visits are missing.
Yes. Rules with Analytics-Safe Redirect unchecked are sent as 301 Moved Permanently via wp_safe_redirect(). The delayed mode is a client-side redirect and does not send a 301 status.
Yes. Enter the full URL in the Destination URL field.
Yes. Rules are created per site, and checking Network Wide makes a rule apply on the other sites of the network as well. On those sites the rule matches content whose slug is the same as the target page's slug, since page IDs are not shared between sites.
The list of published rules is read once and cached for an hour per site, and the check runs only on single pages and posts on the front end. Pages without a matching rule are left untouched.
Check that the rule is published rather than saved as a draft, that both the page and the destination URL are filled in (the rule is not saved if either is empty), and that you are testing on the front end while not previewing the page from the editor.
effortless-smart-page-redirects, was singular effortless-smart-page-redirect)elspr_ / ELSPR_ prefix (was espr_), with a one-time automatic migration of existing redirect rules<script>/<style> tags replaced with properly enqueued assets