Console commands
All commands take the identifier of the new site as first argument, as in
config/.
relaunch-redirects:import
Imports the URLs of the old website and checks them against the new site.
vendor/bin/typo3 relaunch-redirects:import main https://www.example.org/sitemap.xml
vendor/bin/typo3 relaunch-redirects:import main search-console-pages.csv
cat urls.txt | vendor/bin/typo3 relaunch-redirects:import main -
The source is the URL of a sitemap or URL list, a local file, or - for
standard input.
| Name | Type |
|---|---|
| flag | |
| flag |
-
- Type
- flag
Removes the current list of the site before the import.
-
- Type
- flag
Only imports the URLs. Check them later with relaunch-redirects:check.
relaunch-redirects:check
Checks all imported URLs again and lists the ones that need a decision.
vendor/bin/typo3 relaunch-redirects:check main --fail-on-problems
| Name | Type |
|---|---|
| flag | |
| integer |
-
- Type
- flag
Exits with code 1 when an old URL is missing or ends in a broken redirect. Use it in a deployment pipeline after the go-live.
-
- Type
- integer
- Default
- 50
Maximum number of problems listed in the output.
relaunch-redirects:create
Creates redirects for missing URLs, and fixes broken redirects, whose best suggestion reaches a minimum score. The suggestions below the score are left for a person to decide in the backend module.
vendor/bin/typo3 relaunch-redirects:create main --dry-run
vendor/bin/typo3 relaunch-redirects:create main
| Name | Type |
|---|---|
| integer | |
| integer | |
| string | |
| flag |
-
- Type
- integer
- Default
- 90
Only suggestions with at least this score are used. 100 means the same path, 90 means the page name exists only once on the new site.
-
- Type
- integer
- Default
- 301
HTTP status code of the new redirects: 301, 302, 303, 307 or 308.
-
- Type
- string
Source host of the new redirects,
*for all hosts. By default the host of the old URL is used, or*for paths without host.
-
- Type
- flag
Only lists the redirects that would be created.
relaunch-redirects:export
Writes the checked list as CSV.
vendor/bin/typo3 relaunch-redirects:export main --filter=attention --output=old-urls.csv
| Name | Type |
|---|---|
| string | |
| string | |
| string |
-
- Type
- string
- Default
- -
File to write,
-for standard output.
-
- Type
- string
- Default
- all
Which URLs:
attention(missing and broken),missing,broken,redirected,ok,unchecked,ignoredorall.
-
- Type
- string
- Default
- ,
Column delimiter, for example
;for Excel with German settings.