nginx配置的小常识

1,thinkphp 如何实现 "http://localhost/index.php?/模块/操作&quo... 变为 "http://localhost/模块/操作"??

找到location / {

}位置然后添加红色字体代码

如下面:

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

            index  index.html index.htm index.php l.php;
           #autoindex  on;
        }

猜你喜欢

转载自blog.csdn.net/baron0071/article/details/80509354
今日推荐