我不知道如何重定向:
"https://images.url.com/c/test.png">
收件人:
"https://images.url.com/c/index.php?file=test.png">
<rule name="filerewrite" stopProcessing="true">
<match url="^c(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="false" />
</conditions>
<action type="Rewrite" url="c/index.php?file={R:1}" />
</rule>
它仍然说:
404或重定向到index.php?file=c/index.php?文件=c。。。等等
您的模式有问题。
如果你使用你的模式,那么{R:1}是"/test.png">
你可以尝试改变你的模式如下:
^c/(.*)$
致问候,
Sam