0
所以我应该能够访问rsstest/test.xml并将其转发到article.xml,如果我没有用户代理的wibble。谁能告诉我这个IIS URL重写有什么问题吗?
为什么不能正常工作?
<rule name="df" patternSyntax="ExactMatch" stopProcessing="true"> <match url="^rsstest/test.xml" negate="true" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="Wibble" negate="true" /> </conditions> <action type="Rewrite" url="article.xml" /> </rule>
在此先感谢
我相信它与URL中的'^'有关,而且您正在使用'ExactMatch'。 – Ren
感谢您的回复。我试图拿出这个无济于事。 – user1242345
当你说你想要被转发时,你的意思是重定向而不是重写? – Ren