Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net IIS Url重写器,用于检测提要并重定向到Feedburner_Asp.net_Asp.net Mvc_Iis_Iis 7.5 - Fatal编程技术网

Asp.net IIS Url重写器,用于检测提要并重定向到Feedburner

Asp.net IIS Url重写器,用于检测提要并重定向到Feedburner,asp.net,asp.net-mvc,iis,iis-7.5,Asp.net,Asp.net Mvc,Iis,Iis 7.5,我的网站在http://mysite.com/sydnication/rss/articlespath。我想在所有用户访问此url时将其重定向到feedburner,feedburner自己的用户代理尝试访问此url时除外。这是我认为应该起作用的Url重写规则,但事实并非如此。谁能看看,告诉我怎么了 <rule name="Feedburner redirection" enabled="true" stopProcessing="true"> <match url="

我的网站在
http://mysite.com/sydnication/rss/articles
path。我想在所有用户访问此url时将其重定向到feedburner,feedburner自己的用户代理尝试访问此url时除外。这是我认为应该起作用的Url重写规则,但事实并非如此。谁能看看,告诉我怎么了

<rule name="Feedburner redirection" enabled="true" stopProcessing="true">
    <match url="/syndication/rss/articles" />
    <action type="Redirect" url="http://feeds.feedburner.com/articles" appendQueryString="false" />
    <conditions logicalGrouping="MatchAll">
        <add input="{HTTP_USER_AGENT}" pattern="FeedBurner" negate="true" />
    </conditions>
</rule>

尝试从匹配url中删除第一个正斜杠(/),匹配的输入在开头没有斜杠,以防我添加
ignoreCase=“true”


<match url="syndication/rss/articles" ignoreCase="true" />