nginx配置
文章目录
thinkphp5 访问不了多模块,只能访问默认模块
更改nginx.conf文件
location / {
try_files $uri $uri/ /?$args;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
thinkphp5 访问不了多模块,只能访问默认模块
更改nginx.conf文件
location / {
try_files $uri $uri/ /?$args;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论