[color=#222222][size=2]How can I create a pretty url like this customer/index/amount/12000/location/in . In Yii1.1 it was available by default. it was easy to enable pretty url. In Yii2 if need pretty url I’ve to write rules for every action !!![/size][/color]
[color=#222222][size=2]In Codeigniter you will get index.php/controller/action/parameter1/parameter2/parameter3 ie it does not expose action parameter variables, that too without writing any url rules![/size][/color]
[size=“2”]I have enabled pretty url (i think), i am getting a lot of 404’s, like[/size]
[size="2"]192.168.1.3/~user/urshow/frontend/web/movies/movies_all it would have work fine if it would be like this 192.168.1.3/~user/urshow/frontend/web/index.php?r=movies/movies_all and no links are working which worked perfect previously.[/size]
# Setup URL Manager for Path URLS
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
// i only use default rules so this is empty
],
],