扫码关注官方订阅号
必须在不使用重定向的情况下
例如:https://www.xxx.com/asda/asdas/asda 返回 index.html
https://www.xxx.com/asda/asdas/asda
例如:https://www.xxx.com/ss/ss/assd 返回 index.html
https://www.xxx.com/ss/ss/assd
但是排除以 https://www.xxx.com/api/v1的请求
https://www.xxx.com/api/v1
学习是最好的投资!
location / {
root “你的页面路径”; index.html;
}location api/v1 {
这里配置你之前的就可以了
}
不使用rewrite好像不行吧。404文件指定为index.html?
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
location / {
}
location api/v1 {
}
不使用rewrite好像不行吧。
404文件指定为index.html?