如何在 Firebase 中将我网站的子文件夹设置为子域?

问题描述 投票:0回答:0

例如, 我有一个域 www.domain.com 和 subdomain.domain.com, 当用户输入 subdomain.domain.com 时,它应该将我的用户重定向到 domain.com/subfolder

如何在 firebase 中执行此操作?

我在我的 firebase.json 中试过了,但这不是我所期待的......

“托管”:{ // 返回对“/foo”(但不是“/foo/”)的请求的永久重定向到“/bar” “重定向”:[{ “来源”:“/博客/”, “目的地”:“https;//subdomain.domain.com/Blogs”, “类型”:302 } ]

}

firebase redirect dns subdomain hosting
© www.soinside.com 2019 - 2024. All rights reserved.