问题描述
我正在尝试重定向 Google Firebase 自定义托管域。
来自特定域的重定向应该转到特定的一侧: 比方说,来自 https://domain1.com 的应该重定向到 https://domain2.com/login.html 来自 https://domain3.com 重定向到 https://domain2.com/Log.html
<script>
window.onload = function() {
if (document.referrer !== "https://domain1.com/") {
document.location.href = "https://goTodomain1.com";
}
else if (document.referrer !== "https://domain2.com") {
document.location.href = "https://goTodomain1.com/login.html";
}
else {
document.location.href = "https://goTodomain1.com/404.html";
}
</script>
在那之后,我无法在 firebase 中用 PHP 执行任何操作,我有点卡住了。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)