Usage
The Redirects module (Link Management > Redirects) gains the broken-redirect filter, the CSV import and the disable log.
Commands
Both commands can be run on the CLI or as Scheduler tasks (Execute console commands).
extendredirect:checkredirects
Checks all redirects and disables broken ones.
vendor/bin/typo3 extendredirect:checkredirects --dry-run --limit=200 --max-runtime=120 --delay=100
--dry- run - Only report which redirects would be disabled; nothing is written.
--delay=<ms> - Pause after each checked redirect (rate limit for
requestmode). Default0. --max- runtime=<seconds> - Stop starting new checks after this budget; remaining redirects are reported. Default
0(no limit). --limit=<n> - Check at most n redirects per run. Default
0(all).
The output lists every broken redirect: "Disabled redirect" (or "Would disable" with --) for the ones
disabled in this run and "Still broken" for the ones an earlier check had already disabled.
Redirects are processed never-checked first, then least recently checked, so limited runs rotate through all redirects. Redirects disabled by hand are skipped and never re-enabled.
Note
Checks are in-process sub-requests: there is no per-request timeout and no parallelism.
extendredirect:cleanuplog
Deletes disable log entries older than a number of days, comparable to the core Table garbage collection task.
vendor/bin/typo3 extendredirect:cleanuplog --days=30
--days=<n> - Delete entries older than n days (integer >= 1). Default
30.