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

exp:updateniceurls

Import old URL aliases and update the URL aliases of all nodes (--update-nodes).

Download as PDF

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

On this page

exp:updateniceurls

Import old URL aliases and update the URL aliases of all nodes (--update-nodes).

Script bin/php/updateniceurls.php, code in kernel/private/classes/commands/updateniceurls.php. Run it from the installation root, as the user the web server runs as:

./console exp:updateniceurls --help
php bin/php/updateniceurls.php --help

Options

OptionValueHelp
--db-hostrequiredDatabase host
--db-userrequiredDatabase user
--db-passwordrequiredDatabase password
--db-databaserequiredDatabase name
--db-typerequiredDatabase driver, alias for --db-driver
--db-driverrequiredDatabase driver
--sqlDisplay sql queries
--no-importDisables all import routines. To enable specific ones use the --import-* options.
--importEnables all import routines.
--import-nodesEnables importing of urls from the old node data.
--import-aliasesEnables importing of old urls (system and customized).
--import-redirectionsEnables importing of urls which redirects to the correct url (ie. history).
--import-wildcardsEnables importing of urls which redirects to the correct url using wildcards (ie. history).
--no-update-nodesDisable updating of the urls of content object nodes.
--update-nodesEnable updating of the urls of content object nodes.
--verify-dataVerify the database after new data has been inserted, this should only be used for debugging.
--interactiveEnables interactive mode for --verify-data, this will halt execution when database errors occurs and allow for manual inspection.
--backup-tablesrequiredPerforms a backup of the ezurlalias and ezurlalias_ml tables after each stage is done (import or update), the backup tables will use the original name but with the suffix supplied to this option. Note: Use only for debugging and only on MySQL.
--column-widthrequiredThe approximate width of the output block, defaults to 72.
--fetch-limitrequiredThe number of items to fetch in one go, increasing it may reduce total time but will also increase memory usage, defaults to 200.

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 ...).


Generated by ./console exp:help:examples from bin/php/updateniceurls.php, kernel/private/classes/commands/updateniceurls.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