And then creating a new transform.ini.append.php, which will take over the default one:
[Transformation]
Groups[]=urlalias_lowercase
[urlalias_lowercase]
# Extra transformation files for urlalias
Files[]
# Extensions that have transformation files when urlalias is used
Extensions[]
# The commands to use for search
Commands[]
Commands[]=normalize
Commands[]=transform
Commands[]=decompose
Commands[]=transliterate
Commands[]=diacritical
Commands[]=url_cleanup
Commands[]=lowercase
This is only an example, you can combine commands, and you will find more info on default file transform.ini
after changes suggested by Jean-Luc, all your new contest will get a nice url with underscores. for changing the old ones, you will need to run
php bin/php/updateniceurls.php -s yoursiteacces
from your Document Root
clear caches after that. sometimes i have truncated ezurlalias_ml table before running... i think the updateniceurls.php doesn't delete old entries, so i prefer delete them by myself...
"Another thing is it possible to install the future ezpublish with urls/underscores by default."
I do this by uncommenting the line:
TransformationGroup=urlalias_compat
in 'site.ini'. It still creates a few URL's with capitals and hyphens instead of underscores (like /Users/Guest-Accounts) but by just 'editing' and 'publishing' those, the URL's get converted.
All new URL's are in /no_caps/using_underscore_for_separator format.
Hope this helps.
You must be logged in to post messages in this topic!