我想从thisdomain.com/webpage重定向到thatdomain.com/webpage
我尝试将以下这些glob用于源匹配:
/*
/**
*
**
这是我当前的firebase.json:
{
"hosting": {
"public":".",
// Add the "rewrites" section within "hosting"
"rewrites": [ {
"source": "/**",
"destination": "https://thisdomain.com/**"
} ]
}
}
我希望将访问那domain.com/webpage的人重定向到thisdomain.com/webpage。
重写是在一个站点内使用的,它们不会跨多个站点进行重写。
如果您将两个域都作为自定义域映射到Firebase Hosting项目,则无需其他设置。您确实需要将每个域/目标映射到public
目录。请参阅https://firebase.google.com/docs/hosting/multisites#define_hosting_config
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句