【发布时间】:2014-03-23 14:42:24
【问题描述】:
我正在使用 ImageResizer 从我的 Amazon S3 读取图像,使用此规则效果很好:
<rewrite>
<rules>
<rule name="Rewrite to s3" stopProcessing="true">
<match url="^(.*)/(productimages)/(.*)" />
<action type="Rewrite" url="{R:1}/mybucketname/{R:3}" appendQueryString="true" redirectType="Found" />
</rule>
</rules>
</rewrite>
对于这个网址:
http://localhost:7514/s3/productimages/112/0718877-21_lg.jpg
从 Amazon S3 加载此图像:
http://localhost:7514/s3/mybucketname/112/0718877-21_lg.jpg
一切正常,但我需要删除第一个 URL 中的 /s3,所以它是:
http://localhost:7514/productimages/112/0718877-21_lg.jpg
我已经尝试了一百万种不同的组合,但我无法得到它。
【问题讨论】:
标签: iis-7 rewrite imageresizer