当tp5.0遇上nginx

是需要改配置文件的。

官网明确告知了。

但是如果配置了站点域名,一定要改vhost.conf里面的内容

添加在你对应的站点域名的location里面

  location / { // …..省略部分代码
   if (!-e $request_filename) {
   rewrite  ^(.*)$  /index.php?s=/$1  last;
   break;
    }
 }

这样添加就可以了。

如果白屏,开启php-ini里面的display_errors,还不报错的话

别问

问就是你可能没return视图(/笑哭 ,我刚才还因为这个看了好久的open_basedir

猜你喜欢

转载自www.cnblogs.com/gushengyan/p/11220870.html