exp:expurlundo
Undo a URL map import: every alias, wildcard and redirect it created or changed back as it was.
Script bin/php/expurlundo.php, code in kernel/private/classes/commands/expurlundo.php. Run it from the installation root, as the user the web server runs as:
./console exp:expurlundo --help
./console exp:url:undo --help
php bin/php/expurlundo.php --helpHelp text
Undo a URL map import
Puts every URL alias, wildcard and redirect the import created or changed back as it was before, the
last first, in one transaction. An entry changed after the import is kept (the batch is then
partly-undone), unless --force is given. exp:url:batches lists the imports.
./console exp:url:undo 12
./console exp:url:undo 12 --force --format=jsonOptions
| Option | Value | Help |
|---|---|---|
--force | Undo also the entries that changed after the import (default: they are kept) | |
--format | required | import: the format of the file (csv, json, xlsx, ods, apache, nginx; default from its name or content); export: the format to write (default from --output, else csv); batches, undo, from-sitemap, from-404, suggest, test: text (default) or json (the machine output exp-url/1) |
--login | required | Run as this user (recorded with the import and in the audit) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [batch].
Related
Generated by ./console exp:help:examples from bin/php/expurlundo.php, kernel/private/classes/commands/expurlundo.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.