Loading...

nginx+vue+thinkphp5.1部署,解决前端刷新404,以及前端404解决后,后台又404的问题

宝塔的话直接在网站的伪静态一栏中如下就行

location /admin {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}

location / {
try_files $uri $uri/ /index.php;
}

posted @ 2019-01-21 11:51  awesomego  阅读(1447)  评论(0编辑  收藏  举报