I created some CMS pages for my site.And now I want to make it in pretty way like this eg: domain.in/aboutus
And I created a page alias for each CMS page in my db.
If I call these page alias, I should get the corresponding pages.
I am attching my rules here
'urlManager' => [
'showScriptName' => false, // Disable index.php
'enablePrettyUrl' => true, // Disable r= routes
//'enableStrictParsing' => true,
'rules'=>array(
'aboutus'=>'cms/index/1' //I need this line dynamically
'<siteName:\w+>/<role:(teacher|parent)>' => 'customers/login',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
],
Can anybody help to fix this issue?