I'm trying to move a Yii application from a development machine to Amazon EC2 instance. I'm getting an exception on the Amazon server related to CUrlManager which is:
The URL pattern "<controller:\w+>/<id:\d+>" for route "<controller>/view" is not a valid regular expression.
The settings in my config are:
This is working fine on my dev machine. The only noticable differences is that I am running PHP 5.3.10 and the EC2 instance is on 5.3.14.
Any thoughts?
Shawn
The URL pattern "<controller:\w+>/<id:\d+>" for route "<controller>/view" is not a valid regular expression.
The settings in my config are:
'urlManager' => array(
'urlFormat' => 'path',
'showScriptName' => false,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
),
This is working fine on my dev machine. The only noticable differences is that I am running PHP 5.3.10 and the EC2 instance is on 5.3.14.
Any thoughts?
Shawn