php - Lumen application work with trailing slash using Nginx server -


all new lumen cause using else before. have tested lumen project , find out works nice support , documentation , can extend laravel bigger project. decide use lumen company,

the problem facing trailing slash of url on nginx. e.g. $app->get('welcome', function() { return 'hello'; }); responds http://mysite.dev/welcome trailing slash http://mysite.dev/welcome/ site throws 404.

this because old website been using url end slash e.g. ppc, seo ... more, not want redo , change whole process including 3rd party use these url , can not 301 url ending / redirect url without ending / cause redirection.

i have tried searching solution whole week still can not find solution best match user requirement.

is there way lumen revert routing url work ending / , not working without ending / ??

or otherwise please recommend me use else? match requirement.

i tried service provider still not working link

regards

lumen , laravel should fine trailing slashes. 404 resulting bad nginx configuration.

this how nginx config looks catch trailing slash , use same content @ location.

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

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -