解决laravel 配置路由时除 “/”路由 以外 ,所有路由访问不到的情况

在nginx配置文件中 替换以下代码
     location / {
            index  index.html index.htm index.php l.php;
      try_files $uri $uri/ /index.php$is_args$query_string;
        }   

  如图:

  

posted @ 2019-10-17 19:37  PHP--***  阅读(1710)  评论(0编辑  收藏  举报