laravel 配置

1.nginx 支持

对应的 .conf 文件中添加以下语句

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

 或

 location / {
          if (!-e $request_filename){rewrite ^/(.*)$ /index.php/$1 last;}
     }

  

 

猜你喜欢

转载自www.cnblogs.com/zyjfire/p/10168779.html