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 --helpOptions
| Option | Value | Help |
|---|---|---|
--db-host | required | Database host |
--db-user | required | Database user |
--db-password | required | Database password |
--db-database | required | Database name |
--db-type | required | Database driver, alias for --db-driver |
--db-driver | required | Database driver |
--sql | Display sql queries | |
--no-import | Disables all import routines. To enable specific ones use the --import-* options. | |
--import | Enables all import routines. | |
--import-nodes | Enables importing of urls from the old node data. | |
--import-aliases | Enables importing of old urls (system and customized). | |
--import-redirections | Enables importing of urls which redirects to the correct url (ie. history). | |
--import-wildcards | Enables importing of urls which redirects to the correct url using wildcards (ie. history). | |
--no-update-nodes | Disable updating of the urls of content object nodes. | |
--update-nodes | Enable updating of the urls of content object nodes. | |
--verify-data | Verify the database after new data has been inserted, this should only be used for debugging. | |
--interactive | Enables interactive mode for --verify-data, this will halt execution when database errors occurs and allow for manual inspection. | |
--backup-tables | required | Performs 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-width | required | The approximate width of the output block, defaults to 72. |
--fetch-limit | required | The 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 ...).
Related
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.