ThinkPHP网站宝塔伪静态配置
客户的网站想要放到我们服务器,之前使用的是Apache的环境,但我们的服务器是Ninux环境,怎么弄都不能完全显示。好不容易测试成功了,但是发现网站的手机端和pc端代码是分开的,通过各种查资料最终鼓捣成功了,记录一下,给遇到同样问题的小伙伴。
return 403;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location /手机端文件目录/ {
if (!-e $request_filename){
rewrite ^/手机端文件目录/(.*)$ /手机端文件目录/index.php?s=$1 last; break;
}
}