标签:min php5 bre uri 问题 rewrite file ati try
宝塔的话直接在网站的伪静态一栏中如下就行
location /admin {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ /index.php;
}
nginx+vue+thinkphp5.1部署,解决前端刷新404,以及前端404解决后,后台又404的问题
标签:min php5 bre uri 问题 rewrite file ati try
原文地址:https://www.cnblogs.com/ilovepan/p/10298003.html