return CMap::mergeArray(
require (dirname(__FILE__) . '/main.php'),
array(
'components' => array(
'urlManager'=>array(
'rules' => array(
//front end of sites
'http://<module:\w+>.localhost/' => '<module>/default',
'http://<module:\w+>.localhost/<controller:\w+>' => '<module>/<controller>/',
'http://<module:\w+>.localhost/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
'http://<module:\w+>.localhost/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>',
//admin subdomains for admin modules
'http://admin.<module:\w+>.localhost/' => '<module>admin/default',
'http://admin.<module:\w+>.localhost/<controller:\w+>' => '<module>admin/<controller>/',
'http://admin.<module:\w+>.localhost/<controller:\w+>/<action:\w+>' => '<module>admin/<controller>/<action>',
'http://admin.<module:\w+>.localhost/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>admin/<controller>/<action>',
),
),
)
));