Case Sensitive urls

We currently have an API in Yii1. This API has upper and lower case Controller IDs. For example:


http://www.example.com/PostComment

We have upgraded this API to Yii2. However Yii2 appears to require "English letters in lower case, digits, underscores, hyphens, and forward slashes." So, for the above example the Yii2 url would be:


http://www.example.com/postcomment

Since we have numerous organizations sending requests to the url with upper case letters, it would be a problem to release Yii2 without having everyone change their requests.

Is there a way to turn off the lowercase requirement in Yii2 for controller ID’s? I’ve looked and haven’t found anything. Thanks.

I’m not sure if there is another way to accomplish it but you can use this

http://www.yiiframework.com/doc-2.0/guide-structure-controllers.html#controller-map

I’ll check it out. thanks.