在 中firebase.json
,有没有办法将所有请求重写(不是重定向)到相应的 .html 文件但保留其他扩展名?
例如,https://example.com/foo
将与https://example.com/foo.html
.
但https://example.com/data
会不会是相同的https://example.com/data.xml
。
这是以下cleanUrls
选项(如文档中所示)firebase.json
:
{
"hosting": {
"cleanUrls": true
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句