Linux 软件免费装
Banner图

EffortLess Smart Page Redirects

开发者 domclic
更新时间 2026年9月5日 16:38
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

404 analytics multisite 301 redirect page redirect

下载

1.6.8 1.7.0 1.6.9 1.6.11

详情介绍:

EffortLess Smart Page Redirects lets you send visitors of a specific WordPress page to another URL. Each redirect is stored as its own "Redirect Rule", so you can add, edit, disable (by moving the rule to draft) or delete redirects without touching theme files or the .htaccess file. Two redirect modes are available per rule: The delayed mode can use either a <meta http-equiv="refresh"> tag or a JavaScript setTimeout() call, selectable per rule. What each setting does Every Redirect Rule has the following fields: How a rule is matched How a rule is matched depends on where it was created, because page IDs are per site: every site of a network has its own set of pages numbered from 1, so the ID 42 refers to different content on every site. A site's own rules are checked first, so a rule created on a site always wins over a network-wide rule inherited from another site for the same content. A rule stops applying on its own site if its target page is deleted and recreated, because the new page receives a new ID. Re-select the page in the rule when that happens. Notes and limitations 404 handling The plugin can also redirect requests for addresses that do not exist to an equivalent page, instead of showing the site's 404 page. This is a separate feature from the redirect rules described above, is configured on its own Settings screen (Redirect Rules → Settings), and is off by default. On a multisite network, each site can either inherit the network-wide default or override it with its own values, using the Settings source choice at the bottom of the site's Settings screen ("Use the network-wide settings" or "Use the settings on this screen instead"). The network-wide default itself is configured on Network Admin → Settings → Smart Page Redirects, which offers the same four fields above (without the source choice, since that is a per-site decision). A request that finds a matching page is sent there with a 301 Moved Permanently response, because it is a genuine equivalent and the link equity of the dead address should transfer to it. A request that falls back to the home page is sent there with a 302 Found response instead: a permanent redirect from an unrelated missing address to the home page is the soft-404 pattern search engines decline to honour, so the fallback is marked temporary. 404 handling: notes and limitations

安装:

  1. In your WordPress admin, go to Plugins → Add New → Upload Plugin and upload the plugin zip file, or copy the effortless-smart-page-redirects folder into /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu.
  3. A Redirect Rules menu appears in the admin sidebar. Go to Redirect Rules → Add New.
  4. Give the rule a title for your own reference (for example "Old pricing page").
  5. In the Redirect Settings box, choose the Page to Redirect and type the Destination URL.
  6. Leave Analytics-Safe Redirect unchecked for a standard 301 redirect, or check it and set the delay method and delay if you want your analytics to record the visit first.
  7. Click Publish. The redirect is active immediately.
  8. To turn on 404 handling, go to Redirect Rules → Settings, tick Enable 404 handling, and click Save Changes.
To disable a redirect later, edit the rule and switch it back to draft, or move it to the trash.

升级注意事项:

1.7.0 Adds an optional 404 handling setting (off by default), fixes a redirect loop on subdirectory installs, and removes a site-identifying parameter from the donate notice link. 1.6.11 Fixes network-wide rules on multisite, which matched unrelated content on the other sites. Update recommended on multisite installs. 1.6.10 Rules match on the target page ID only again. On a network, review any rule that relied on the 1.6.8 slug matching to reach a page on another site. 1.6.9 Fixes immediate (301) rules that point at a URL on another domain. Update recommended. 1.6.8 Fixes network-wide redirect rules on multisite and adds slug matching as a fallback. Update recommended on multisite installs. 1.6.7 Documentation update only. No changes to plugin behaviour. 1.6.6 Fixes a plugin slug / text domain mismatch. Update recommended. 1.6.5 Internal identifier prefix migration (automatic, no action needed) plus compliance fixes. Update recommended.

常见问题:

What is the difference between the two redirect modes?

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.

Which analytics tools does the delayed mode work with?

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.

Does it support 301 redirects?

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.

Can I redirect to an external site?

Yes. Enter the full URL in the Destination URL field.

Does it work on multisite?

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.

Will it slow down my site?

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.

I created a rule but nothing happens

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.

I turned on 404 handling but broken addresses still show the 404 page

Check each of the following:

  • The setting is enabled on the site you are testing. On a multisite network a site set to "Inherit from network" (labelled "Use the network-wide settings") uses the network setting, not its own.
  • The address does not end in a file extension. Requests for files are left alone on purpose.
  • "If nothing matches" is set to "Redirect to the home page" — with "Show the 404 page" selected, only addresses close enough to a real page are redirected.
  • The address is not the page's own address.

更新日志:

1.7.0 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.3 1.6.2 1.6.1 1.6.0