1,打开phpstudy-》其他选项菜单-》站点域名管理,
2,找到phpstudy安装目录,phpstudy/nginx/conf/vhost.conf,打开vhost.conf,对应位置添加以下代码(非应用安装在二级目录:二级目录即publix下的index.php中定义应用目录时指定application下某一特定模块)
具体添加的代码
??????????????if (!-e $request_filename) { ????????????????????rewrite ?^(.*)$ ?/index.php?s=/$1 ?last; ????????????????????break; ???????????????}
3,host文件中添加解析
4,重启phpstudy
thinkphp5使用
原文地址:https://blog.51cto.com/11437420/2388280