Azure CDN for Azure 静态网站 301 重定向配置

Azure CDN for Azure static website 301 redirection configuration

我在 Azure Blob 存储中配置了一个前端网站,关注下一篇文章:

https://docs.microsoft.com/en-us/azure/cdn/cdn-map-content-to-custom-domain

我成功配置此网站以使用我的自定义域显示:

https://www.example.com

我正在寻找如何配置正确的 301 重定向:

我读了这个部分:https://www.itinsights.org/Static-Websites-with-Azure-Part-4/#HTTP-to-HTTPs-redirection

但是在我的 Azure 门户中,我没有看到任何可以推送此 xml 规则或如何从界面配置重定向规则的部分。

<rule id="1111111" platform="http-large" status="active" version="0" custid="XXXXX">
<description>HTTP to HTTPS</description>
<match.request-scheme value="http">
feature.url-redirect code="301" pattern="/XXXXXXX/staticwebsitede/(.*)" value="https://www.staticwebsite.de/" />
</match.request-scheme>
</rule>

编辑 根据接受的答案,我联系了 Azure 支持以查看是否可以进行迁移。 对于 example.com 到 www.example.com 的重定向,我使用了我的域注册的网络转发功能。

来自 that blog, you need to choose the Azure CDN with the Premium Verizon tier to have the benefits of the Verizon rules engine.

更多详情,您可以compare Azure CDN product features. Currently, Azure CDN with Standard Microsoft tier also supports URL redirect/rewrite via using standard rules engine