【发布时间】:2018-08-11 08:25:22
【问题描述】:
我已经编写了 URL 重写来修复图像路径以移动到图像的新位置,但是它不起作用。
<rule name="Artist Images" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{URL}" pattern="^/images/$" />
</conditions>
<action type="Rewrite" url="https://myserver.blob.core.windows.net/v2/images/" redirectType="Permanent" />
</rule>
预期的行为是,当图像请求进入 (http://myserver.com/images/sample.jpg) 时,新图像位置 (https://myserver.blob.core.windows.net/v2/images/sample.jpg) 被使用。
它是托管在 Azure 上的 .net 应用程序。规则在 web.config 中。
有什么想法吗?
【问题讨论】:
标签: asp.net azure url-rewriting web-config imageurl