【发布时间】:2011-04-02 12:06:18
【问题描述】:
我在 iis7 中有一个 http 重定向,可以将请求发送到另一个域。如果 url 类似于 http://www.example.com/news/ 没关系,但如果我尝试 http://www.example.com/news/?id=3 然后从字符串中删除获取参数,它会重定向到相同的 http://www.example.com/news/。
iis7如何在查询字符串中保存get参数?
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>
【问题讨论】:
标签: iis-7 http-redirect