Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expurlundo

Undo a URL map import: every alias, wildcard and redirect it created or changed back as it was.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expurlundo.md

On this page

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 --help

Help 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=json

Options

OptionValueHelp
--forceUndo also the entries that changed after the import (default: they are kept)
--formatrequiredimport: 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)
--loginrequiredRun 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].


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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x