Shortly, possibilities are endless
it is just array and you need to know correct regex, nothing more (it is a little problem for me)
but I had already generated e_url items in some plugin, or used with e_QUERY directly and for example
$config['stories'] = array(
'alias' => 'stories.php',
'regex' => '^{alias}\/?([\?].*)?\/?$',
'sef' => '{alias}',
'redirect' => '{e_PLUGIN}efiction/stories.php$1',
);
$config['rules'] = array(
'alias' => 'submission.php',
'regex' => '^{alias}',
'sef' => '{alias}',
'redirect' => '{e_PLUGIN}efiction/viewpage.php?page=rules',
);
this is an example of how to completely change paths... (all stats from root )
Alias with legacy version (file.php) is used for historical purposes, it could be anything
The important part is that this is used for 2 purposes:
- correct redirection
- getting sef-URL version
The latest one works only if you use correct data - keys have to be the same as in "sef" key. For first one only regex and redirect are needed.
Legacy key is used if sef version doesn't have enough data (in e107::ulr())