2

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.

ahervin
  • 461
  • 2
  • 15
  • This is probably because your server is trying to serve uri's ending with .pdf differently and not routing it to Yii's index.php. Check to verify that your request is actually routed to your Yii app – AmitM May 18 '16 at 05:24
  • @Amitm Usual PDFs load normally though? Just not the routing. – ahervin May 20 '16 at 11:48

0 Answers0