Beskrivelse
This plugin adds two custom post types:
- Redirect rules: define where a URL should redirect to, and choose match type (exact, prefix/wildcard, contains, or regex).
- 404 log: stores 404 hits so you can review and create redirects from real traffic.
It also includes an automatic cleanup routine for old 404 log entries.
Textdomain: wa-404-redirects-cpt
Ændringslog
1.1.37
- Fix: prevent false “Update failed†in WP-admin when a
map_meta_cap/delete_postnotice would otherwise corrupt the AJAX updater JSON.
1.1.36
- Fix: compatibility with PHP 8.4 (remove deprecated nullable parameter signatures in the update checker library).
1.1.35
- Fix: load translations on init (avoids textdomain timing issues on newer WordPress).
- Perf: reduce memory usage on admin log/rules lists and redirect matching.
1.1.34
- Fix: prevent fatal error if bulk-spam handler callback is missing in a partial/old deployment.
1.1.33
- Admin: add bulk action on the 404 Log to ignore selected URLs as spam.
1.1.32
- Maintenance: version bump for release/build.
1.1.31
- Admin: premium UI polish (consistent header/logo on all Tools views, card-based layout).
- Admin: add lightweight dashboard stats on the Tools page.
1.1.30
- Admin: add “Delete†button in the 404 Log to remove all log entries for the shown URL.
1.1.29
- Admin: add “Ignore (spam)†button in the 404 Log to add a URL to an ignore list (stops logging it).
- Spam filter: additional patterns for
/test/info.phpand/phpbb/phpinfo.php.
1.1.28
- Admin: 404 Log now shows when a matching redirect rule already exists (and offers “Edit redirect†instead of “Create redirectâ€).
1.1.27
- Admin: autocomplete improved matching for Danish letters/transliteration (e.g. kød/koed, æ/ae, ø/oe, å/aa).
1.1.26
- Admin: autocomplete reserves slots for taxonomy terms so categories/taxonomy pages always show (not only when fewer than 20 posts match).
1.1.25
- Admin: target URL suggestions now also include taxonomy archive pages (terms), e.g.
warp_typeterm pages like/opskrifter/fisk.
1.1.24
- Admin: ignore common crawlbot/scanner 404 spam (e.g.
.env,phpinfo.php,.aws/credentials) so the 404 log focuses on real traffic.
1.1.23
- Fix: avoid blank admin screen when saving/deleting redirect rules on hardened sites by processing actions via
admin-post.php(reliable Post/Redirect/Get).
1.1.22
- Admin: target URL suggestions now include draft/unpublished content (and show the post status in the label).
1.1.21
- Change: if a redirect target points to unpublished internal content (draft/private/pending/etc), visitors are sent to the homepage instead.
- Admin: show a warning in the Redirect Rules table when a rule points to unpublished internal content.
1.1.20
- Fix: avoid blank admin page when saving a redirect rule if a nonce/security check fails; show an error notice instead.
1.1.19
- Admin: automatically ensure/update the plugin .htaccess marker block after plugin updates/version bumps (updates do not trigger activation hooks).
1.1.18
- Admin: add target URL suggestions when editing redirect rules (searches existing pages/posts + public CPTs).
1.1.17
- Fix: after saving a rule in the Tools UI, redirect back to the list view (avoids blank pages on some hardened setups).
- Admin: rename the "Add new" link to "Clear form" to avoid confusion.
1.1.16
- Change: legacy
*.htmlhits are logged, then redirected via a matching plugin rule when available; otherwise redirected to fallback (homepage).
1.1.15
- Change: legacy
*.htmlrequests are logged and then always redirected to the plugin fallback URL (default: homepage).
1.1.14
- Fix:
.htaccessmarker block updates no longer corrupt rules containing$1. - Change: legacy
*.htmlhandling is routed through WordPress so redirects happen in the plugin (enables logging).
1.1.13
- Admin: show the detected
.htaccesstarget path and whether it exists/writable on the Tools page (helps debugging on Plesk).
1.1.12
- Admin: add a "Create/Update .htaccess" button on the Tools page.
- Fix: do not skip
.htaccesssetup just becauseSERVER_SOFTWAREreportsnginx(common on Plesk even when Apache is behind).
1.1.11
- Fix: ensure the
.htaccessmanual-snippet notice is visible to admins on hardened sites (even ifWA_404_CPT_CAPis stripped).
1.1.10
- Admin: show a clear notice with copy/paste
.htaccesssnippet when the plugin cannot write.htaccessautomatically.
1.1.9
- Feature: automatically maintain an Apache/LiteSpeed
.htaccessmarker block (when writable) to redirect legacy*.htmlrequests to extensionless URLs so WordPress can handle them.
1.1.8
- Fix: redirect matching runs on all frontend requests (not only when WordPress sets
is_404()), improving compatibility with hardened/custom routing.
1.1.7
- Change: manage Redirect Rules + 404 Log via the plugin Tools page (avoids CPT list screen permission issues on hardened sites).
1.1.6
- Fix: super admins/admins can access
wa_404_logandwa_404_redirectCPT list screens even with custom capability hardening.
1.1.5
- Fix: ensure admins who can access the Tools page can also access the Redirect/Log CPT lists (capability granting + earlier CPT registration).
1.1.4
- Fix: register admin menus late to avoid other plugins removing the submenu early; tighten Network Admin menu capability.
1.1.3
- Fix: ensure admin menu entry is visible in both Tools (site admin) and Settings (Network Admin) and unify permission checks.
1.1.2
- Fix: ensure Tools menu entry shows reliably for admins on sites with customized capabilities.
1.1.1
- Fix: use a dedicated capability for admin access (works even if sites remove
manage_optionsfrom Administrator). - Fix: align plugin text domain with directory slug for build/translation compatibility.
1.1.0
- Refactor: minimal bootstrap + autoloaded classes in
/src. - i18n: load plugin textdomain.
- Admin: branding/logo in plugin admin screens.
- Plugins list: quick link to the Tools page.
1.0.0
- Initial release.