nginx - Lumen in a subfolder trailing slashes issue -


in public/index.php have changed $app->run() $app->run($app['request']) , resulted in lumen working in sub-folder, works:

http://local.dev/app/ http://local.dev/app/test 

however if there's slash @ end of route notfoundhttpexception. example:

http://local.dev/app/test/ 

i'm using nginx , rewrite rule folder is:

location /app/ {     try_files $uri $uri/ /app/index.php?$query_string; } 

am doing wrong?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -