通过屏蔽将自定义域重定向到特定的firebase托管应用程序URL路由

时间:2017-02-08 13:26:22

标签: firebase firebase-hosting google-domain-api

我有一个使用firebase托管托管的SPA。我目前有一个自定义域连接到该应用程序。

  

即mycustomedomain.com将用户引导至myapp.firebaseapp.com

。但是,我现在要实现的是将多个自定义域重定向到特定的应用程序URL路由。同时将url栏中的地址保留为原始客户域,即

<head>
  <base href="https://polygit.org/polymer+1.8.0/components/">
  <script src="webcomponentsjs/webcomponents-lite.min.js"></script>
  <link rel="import" href="polymer/polymer.html">
</head>
<body>
  <style is="custom-style">
    :root {
      --p-color: red;
    }
  </style>
  <x-foo></x-foo>
  <x-bar></x-bar>
  <button onclick="changeColor()">Change color</button>

  <dom-module id="x-foo">
    <template>
      <style>
        p {
          color: var(--p-color);
        }
      </style>
      <p>x-foo</p>
    </template>
  </dom-module>
  
    <dom-module id="x-bar">
    <template>
      <style>
        p {
          color: var(--p-color);
        }
      </style>
      <p>x-bar</p>
    </template>
  </dom-module>
</body>

这可以通过firebase托管实现吗?如果是这样的话?我可以通过域名提供商(谷歌域名)使用永久重定向来实现这一目标吗?

0 个答案:

没有答案
相关问题