This is how I defined rule for my urls. I have controller named "vijesti" and parameter "naslov" to identify in database. And it works. when I open
www.domain.com/vijesti/9plkd6AKGF where "vijesti" is controller and "9plkd6AKGF" is "naslov" everything works just fine. But now other links wont open like /vijest/admin or /vijesti/create
I noticed now that none of my other controller works except "vijesti".
So I had to change my rules and instead of
'vijesti/<naslov:\w+>'=>'vijesti/view',
write
'/some_string/<naslov:\w+>' => >'vijesti/view'
That is because now yii knows to always look for “some_string” first and then “naslov” parameter when vijest/view is opened. Before it was always first checking for parameter “naslov” whenever I opened any other view or controller so it didn’t work