lumen url重写

打开nginx配置文件vhosts.conf,加上try_files $uri $uri/ /index.php?$query_string; ,如下

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

  

原文地址:https://www.cnblogs.com/cxscode/p/7826134.html