【发布时间】:2019-10-21 03:52:08
【问题描述】:
我正在尝试使用 Firebase 托管通过 302 重定向重定向我的主页。
"redirects" :[{
"source": "/",
"destination": "what do i put here?",
"type": 302
}
]
在我的公用文件夹中,我有 index.html、404.html 和一个装满文件的文件夹。 我希望我的主页随机重定向到其中一个文件。
我知道你可以在 index.html 中使用 location.href/assign/replace 进行重定向,但我必须通过 302 重定向来完成。
谢谢。
【问题讨论】:
标签: json firebase firebase-hosting