I have a Web application setup on EC2 using Yii framework. When I transfer my files on EC2 instance I am getting this error
CException
The URL pattern "<controller:\w+>/<id:\d+>" for route "<controller>/view" is not a valid regular expression.
/var/www/html/framework/web/CUrlManager.php(700)
my URL rules in main.php are
'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>',
),
),
I have a controller named as "ApiController.php" in controllers folder. On my local machine it works fine but the problem is on EC2 instance.
These are the some config in main.php
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'AppName',
'defaultController'=>'Api',