Making Complicated URL Rules


I have 2 questions:

  1. I would like to get this url pattern:

I read all urlManager documentation but I couldn’t find a way to do this,

all I found is how to create this url pattern:

How do you suggest me to do this?

  1. Do you know any method/function that does the same thing as url_title() in CodeIgniter?

Thanks! :)