This is really a quick tip,
So sometimes we may want to treat our urls in case sensitive way, this applies to when you are hosting on Linux, and sometimes you want them to be treated the same regardless of the case
So what you need to do is to open your main.config file
and look for urlManager component.
by default this component is commented as shown below
'urlFormat'=>'path', '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ), ),
Now just after urlFormat item add another array item as shown below
'urlFormat'=>'path', 'caseSensitive'=>false, '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ), ),
Important bit above is introduction to caseSensitive setting above and setting its value to false. By default its true
I hope this helps
Cheers





JC WordPress Coupon Revealer Plugin Pro License
Australian Street Names with City, State and Display Names only, Single Server License
Recent Comments