使用"?"重定向firebase 查询参数

Ole*_*røm 7 redirect firebase firebase-hosting

我正在尝试设置包含查询参数的重定向域.然而,我所做的每一个带有查询参数的网址都没有被忽略.

这是一个例子:

  "redirects": [{
          "source" : "/kunstner.php\\?artist_id=10175",
          "destination" : "https://listen.no/?artist=10010",
          "type" : 301
  },
  {
          "source" : "/kunstner.php\\?artist_id=12194",
          "destination" : "https://listen.no/?artist=11998",
          "type" : 301
  }
]
Run Code Online (Sandbox Code Playgroud)

如果我在firebase serve本地运行并尝试它们,这些工作,但是当我将它部署到firebase时.

归档时间:

查看次数:

824 次

最近记录:

10 年,7 月 前