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 ?
Page 1 of 1
Url Issue
#2
Posted 13 December 2012 - 01:10 PM
add second rule:
order matters - first matching rule wins.
'chain/<slug:[\d\w-åäöÅÄÖéÉ]+>/<page:\d+>' => 'chain/view', 'chain/<slug:[\d\w-åäöÅÄÖéÉ]+>' => 'chain/view',
order matters - first matching rule wins.
red
Share this topic:
Page 1 of 1

Help














