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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!