nginx+vue+thinkphp5.1部署,解决前端刷新404,以及前端404解决后,后台又404的问题
时间:2019-01-21 12:58:14
收藏:0
阅读:841
宝塔的话直接在网站的伪静态一栏中如下就行
location /admin {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ /index.php;
}
原文:https://www.cnblogs.com/ilovepan/p/10298003.html
评论(0)