I have the following rule in my UrlManager:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'cache' => null,
'rules' => [
'classic_articles/<route:.*>' => 'site/classic-articles',
// your rules go here
]
],
However it is not going to the new path when route is a file name
i.e blank%20document.pdf
It does work when there is no .pdf on the end.