Asp.net 将文件重定向到web.config中的文件夹

Asp.net 将文件重定向到web.config中的文件夹,asp.net,redirect,web-config,Asp.net,Redirect,Web Config,这里有点麻烦,我正在处理一个web.config文件,以执行从文件到文件夹的URL重定向。我有以下资料: <rule name="redirect fleet/cats.asp" stopProcessing="true"> <match url="^fleet/cats.asp$" ignoreCase="false" /> <action type="Redirect" redirectType="Permanent" url="http://w

这里有点麻烦,我正在处理一个web.config文件,以执行从文件到文件夹的URL重定向。我有以下资料:

<rule name="redirect fleet/cats.asp" stopProcessing="true">
    <match url="^fleet/cats.asp$" ignoreCase="false" />
    <action type="Redirect" redirectType="Permanent" url="http://www.ccy.com.au/availability/{R:1}" />
</rule>

它重定向: /舰队/cats.asp至/availability/cats.asp

我想要实现的是:

/fleet.cats.asp至/可用性/


我错过了什么来实现这一点?任何帮助都将不胜感激,提前谢谢

我发现我必须删除action属性上的{R:1}。这样我就可以从页面重定向到目录。谢谢我