1
I’m using the Framework
Yii
and need to create URLs
friendly.
Example of URL: http://meudominio.com/meuControle/minhaView
Which is equivalent to: http://meudominio.com/index.php?r=meuControle/minhaView
In the config/main.php
have enabled:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
However when I try to access a page using the Friendly URL, I get the following feedback:
404 Not Found
Nginx/1.4.6 (Ubuntu)
How do I resolve this situation?