【发布时间】:2022-11-05 07:00:23
【问题描述】:
我已经设置了一个带有自定义域的 Azure 静态 Web 应用程序。 example.com 和www.example.com 均已正确设置并正常工作。
我现在想在 staticwebapp.config.json 中创建一些规则,这样所有进入https://example.com/* 的请求都会重定向到https://www.example.com/*。
有没有办法做到这一点?我知道我可以用 Front Door 或类似的东西来做,但我可以通过静态 Web 应用程序中的规则来做吗?
【问题讨论】:
标签: azure azure-static-web-app azure-static-web-app-routing