我正在使用firebase托管我的ember应用程序,并希望使用locationType=history (url中没有哈希),因为我也在使用fullpage.js,它使用#。
所以我的问题是:我可以将firebase配置为只监听base-url吗?
发布于 2015-11-18 04:54:27
您正在寻找的是所谓的重写。
从Firebase documentation for rewrites
当您想要为多个URL显示相同的内容时,
使用重写。
可以通过在firebase.json
文件中定义一个rewrites
部分来指定URL重写:
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]
请务必阅读文档,因为您可以使用这些规则做更多的事情。
https://stackoverflow.com/questions/33759781
复制相似问题