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

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

  如图:

  

猜你喜欢

转载自www.cnblogs.com/dadiaomengmei/p/11694320.html
今日推荐