在phpstudy集成环境下的nginx服务器下配置url重写
时间:2020-10-15 23:18:06|栏目:PHP代码|点击: 次
直接在对应的vhosts.conf配置文件的location / {}中添加以下内容:
location / {
index index.html index.htm index.php;
#autoindex on;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
具体操作过程如下:
1、找到对应的vhosts.conf配置文件

2、选择所需要配置重写url的站点

总结
栏 目:PHP代码
下一篇:微信公众平台天气预报功能开发
本文标题:在phpstudy集成环境下的nginx服务器下配置url重写
本文地址:http://www.codeinn.net/misctech/11966.html






