| 开发者 | shawesome |
|---|---|
| 更新时间 | 2026年11月15日 00:00 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/shop/./%postname%/, posts and pages both live in the root. A URL such as /xyz does not reveal what was requested, so the default applies.
The field Test URL below the path rules shows which 404 page a URL would get, with the values not yet saved.
Search engines
The response keeps the status 404 and carries an X-Robots-Tag: noindex header. While the <head> is printed, WordPress reports a 404, so that SEO plugins handle the request as an error page.
Languages
404 pages can be translated with Polylang. Select a 404 page in any language, the plugin shows its translation in the current language. Language prefixes are not part of the paths in your rules. The language switcher leads to the home page of a language.
Statistics
The plugin counts 404 errors per month, by the path rule or post type that applied, otherwise as "Default". A dashboard widget shows the current month as a bar by category, the tab 404 Log shows the last 12 months, together or one by one, with the most frequent URLs. Older months are deleted.
Only the path of a URL is stored, percent-encoded and without its query string, together with a counter. IP addresses, user agents and referrers are not stored. A month holds up to 1,000 rows; beyond that, new URLs are only counted by category. Requests answered by a page cache do not reach WordPress and are not counted.
Counting can be switched off in the tab Settings. The statistics can be deleted in the tab 404 Log.
For developers
shawesome_c404_page_id – change the 404 page of a request.shawesome_c404_log_limit – change the number of rows a month holds.single-shawesome_404.php in a theme – replaces the page template for 404 pages.remove_action() / remove_filter().shawesome-contextual-404 to /wp-content/plugins/ (or upload the ZIP via Plugins → Add New).With the permalink structure /%postname%/ they cannot be told apart, see the description. Use a prefix for posts, e.g. /blog/%postname%/.
Only published 404 pages are shown. If an existing redirect applies to the URL, it takes precedence.
Yes. Each site has its own 404 pages, rules and statistics. On uninstall, the data of every site is removed.
The settings, all 404 pages and the statistics are deleted.