Custom URLs and paging problem

Hi to all. :)

This is my first Yii app right now, and I have a problem with URLs.

I have URLs like this:

In main.php configuration file:



So in fact I have:

Controller: OffersControler

Method: actionCat

Id and Page id as GET parameters.

Well, this is working great, but when I click on second page (using ‘ajaxUpdate’=>false), the link looks like this:

The question is - how to set these rules to pagination?

Expected url should be:

I hope ‘my english’ is understandable. :D

Best Regards,


ps - URLs are from currently working site, and they must be not changed.

But anyway, for future applications, SEO urls are used pretty often and this info will help me.

OK, I’ve read again CUrlManager info, and I see where is the problem.

So, how can I skip some URL vars when constructing such a URL?

Let me explain again what I’m trying to do:

The site have Products and Categories.

When I click to some Category Name (Mobile Computers for example), products from this category are listed bellow.

And the rules looks like this:


Expected URL is:

And it’s working, but pagination gives me this URL for 4-Th page:

I really don’t know how to proceed with this and is there a solution currently.

Best Regards,


ps - sorry for the Up…

try these rules:



Hey, that’s cool!

Thanks Onman.

I just changed the positions of the rows, otherwise ?Offer_page appears, because first rule matched I tnink…:



Thanks again! :)