必须在不使用重定向的情况下
例如:
https://www.xxx.com/asda/asdas/asda
返回 index.html例如:
https://www.xxx.com/ss/ss/assd
返回 index.html
但是排除以 https://www.xxx.com/api/v1
的请求
location / {
root “你的页面路径”;
index.html;
}
location api/v1 {
这里配置你之前的就可以了
}
不使用rewrite好像不行吧。
404文件指定为index.html?