带有get参数的iis 7相对重定向

我在iis7中有一个http重定向来向另一个域发送请求。如果网址类似于
http://www.example.com/news/
,那就没关系,但是如果我尝试
http://www.example.com/news/?id=3
然后从字符串中删除参数,它会重定向到相同的
http://www.example.com/news/
。 如何使用iis7保存查询字符串中的参数? web.config中:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpRedirect enabled="true" destination="http://www.example.com" exactDestination="false" httpResponseStatus="Permanent" />
    </system.webServer>
</configuration>
    
已邀请:
我相信您只需在重定向网址末尾添加“$ S $ Q”,例如:目的地= “HTTP://www.example.com$S$Q”。 另请参阅StackOverflow相关问题:如何在IIS中重定向URL路径?     

要回复问题请先登录注册