IIS 7.5 with URL Rewrite Module Doubles QueryString Params on Postback

后端 未结 3 1247
忘掉有多难
忘掉有多难 2021-02-08 21:23

I\'m using IIS 7.5 on Windows 7 RC. I use the IIS Url Rewrite module to rewrite URLs.

Everything seems to work fine, until I perform a postback by clicking a button. It

相关标签:
3条回答
  • Add the appendQueryString="false" attribute to the action element of the rewrite rule as well.

    Hope this helps.

    0 讨论(0)
  • 2021-02-08 21:55

    This is a security feature of the IIS Rewrite Module.

    I personally prefer ISAPI Rewrite as it is much better, simpler to write rules, and has more features.

    Have also found under moderate to high load (over 100 connections to a website) that the IIS Rewrite Module courses the application pool to crash and spawn and new process.

    0 讨论(0)
  • 2021-02-08 22:04

    I was able to solve the issue by adding

    Form.Action = Request.RawUrl;
    

    to the Page_Load event. I was able to leave appendQueryString="TRUE" and so far it is working properly.

    0 讨论(0)
提交回复
热议问题