php/tp/TP/nginx 部署https项目的时候路由必须要机上index.php的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35979073/article/details/82628871

原因是https的配置文件上缺少url重写规则

给nginx配置文件上加上url重写规则 代码如下:

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

猜你喜欢

转载自blog.csdn.net/qq_35979073/article/details/82628871