nginx下ThinkPHP5.0路由无效

nginx下开启tp5的路由 由于nginx不支持pathinfo,导致TP5用路由访问时会报404。 解决办法,找到nginx下虚拟主机的配置文件,一般是在/usr/ local/ nginx/ conf/ vhost/ 域名.conf 在中间加上一段代码 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.
相关文章
相关标签/搜索