Controller If No Controller Match


here what I’d like to do. I would like to have url like facebook and other sites that as a rule like this:


and I was wondering how I could do it with yii. I searched for a function beforeController, but it doesn’t exist.

Do you guys have any ideas?


Probably it’s better to list all existing controllers in rules config.

Thanks for the reply! I’ve found that I could create my own url route class, and it worked for me! Thanks again!