Is there a way to force custom routes?
I have this in my config:
'urlManager'=>array(
'showScriptName' => false,
'urlFormat' => 'path',
'rules' => array(
'book/<id:\d+>/<slug:.*?>'=>'books/view',
),
),
But on some places from the crud it will still redirect to
/books/view/id
instead
/book/id/slug
Is there a way to force all routes to only accept the custom route else redirect with a 301 error?