All segments of URLs builded in Novius OS are cleaned by the friendly slug mechanism.
By default:
But you can use others rules or define your own rule. You can also have special rules for contexts.
Four setups of rules are defined:
A sample configuration file is available in local/config/friendly_slug.config.php.sample. Just rename (or copy) it to local/config/friendly_slug.config.php, and update it to your case.
To change the default setup of rules:
<?php
return array(
'active_setup' => 'my_default',
'setups' => array(
'my_default' => array(
// Use the 'no_accent' setup
'no_accent',
// Replace space by '_'
' ' => '_',
// All characters that are not a word character, a '-' or a '_' or a '*' are replaced by '-'.
'[^\w\*\-_]' => array('replacement' => '-', 'flags' => 'i'),
),
),
);
To define specific rules to context, define a new key equal to the context ID in setups array.
<?php
return array(
'setups' => array(
'main::en_GB' => array(
//... Set here your specific rules for context main::en_GB
),
),
);
See also