在nginx加入
location /web {
try_files $uri $uri/ @router;
index index.php index.html index.htm default.php default.htm default.html;
}
location @router {
rewrite ^.*$ /web/index.html last;
}
在nginx加入
location /web {
try_files $uri $uri/ @router;
index index.php index.html index.htm default.php default.htm default.html;
}
location @router {
rewrite ^.*$ /web/index.html last;
}