Url Issue

Hello friends .

how could i remove page(word) from the url .

i mean www.example/chain/walmart/page/2. i want to remove page (word) from url and url should be www.example/chain/walmart/2

in urlManager i have this rule :

‘chain/<slug:[\d\w-åäöÅÄÖéÉ]+>/*’ => ‘chain/view’

any solution ?

add second rule:




'chain/<slug:[\d\w-åäöÅÄÖéÉ]+>/<page:\d+>' => 'chain/view',

'chain/<slug:[\d\w-åäöÅÄÖéÉ]+>' => 'chain/view',



order matters - first matching rule wins.

Thnx redGuy.