ignore rules for a Controller in urlManager


I have enabled urlManager in my site, but I would like to avoid to perform the rules on one of my Controllers. i.e continue using index.php?r=myController/index and the urlManager on all the others controllers.

How can I do this?


delete the rule related to this controller in the main.php config file

but I have a generic rule: ‘<controller:\w+>/<action:\w+>/*’=>’<controller>/<action>’ that I cannot delete

you should then try to play with the regex such as


where controllername_to_omit is the controller for which this rule should not parse

I am not sure if this will work but is something you should play with.