CLinkPager url

Hello!

I wonder if there is a way to rewrite “?page=1” with CLinkPager so it becomes “/page/1”? I’ve been trying to use htaccess rewrite, but apparently I’m not good enough on that front. Don’t really like to have “?param=something” in my urls and therefore I’m going full out with “/param/something”.

Thanks! :)

Adding a rule to the urlManager in main.php should do the trick. Something like ‘yourroute/page/<page>’=>‘yourroute’.

does that mean the url manager will have a lot of regex for every page that i have pagination?